推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
tikazyq
V2EX  ›  Python

Bokeh+Flask 搭建 Dashboard?

  •  
  •   tikazyq ·
    tikazyq · Apr 23, 2015 · 5269 views
    This topic created in 4184 days ago, the information mentioned may be changed or developed.
    万能的V2EX啊,求帮助~

    小弟最近打算用Bokeh[https://github.com/bokeh/bokeh]为公司创建可视化Dashboard,基于Flask框架。因为前段有些应用已经在跑了,所以不想放弃Flask重新搭积木,把Bokeh嵌入进去就好。

    我已经按照官方教程编写了一个app,可以用bokeh-server运行起来,但这个app里面由于调用了其他模块的function,因此跑的时候加载了两次,bokeh会报错__view_model__重复加载。

    这个怎么解决呢?
    2 replies  •  2015-04-23 19:10:01 +08:00
    killpanda
        1
    killpanda  
       Apr 23, 2015   ❤️ 1
    可以试试在函数内 import
    tikazyq
        2
    tikazyq  
    OP
       Apr 23, 2015
    @killpanda 太感谢了!问题解决了!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2609 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:05 · PVG 21:05 · LAX 06:05 · JFK 09:05
    ♥ Do have faith in what you're doing.