python 3.x - Holoview with bokeh does not show plots -
i'm trying create environment in develop python code pycharm while @ same time creating interactive charts using holoviews , bokeh.
i followed steps in holoview introduction , works in jupyter notebook - charts nicely interactive indeed. however, when run same code in pycharm's python console, no charts or browser shows up.
in contrast, when directly call bokeh's methods, in this example, browser launches , can manipulate charts interactively. achieve using holoviews (+bokeh).
many in advance.
my libraries:
- python 3.4.5
- holoviews 1.8.1
- bokeh 0.12.6
- param 1.5.1
- ipython 6.1.0
- jupyter 1.0.0
- pandas 0.20.3
- numpy 1.13.1
- scipy 0.19.1
the solution in: http://holoviews.org/user_guide/deploying_bokeh_apps.html
you need these lines of code:
import holoviews.plotting.bokeh .... layout=#whathever holoview want plot ... doc = hv.renderer('bokeh').server_doc(layout)
and go command prompt, cd right directory , run: bokeh serve --show myscript.py
Comments
Post a Comment