Bokeh inside Google Colab

痞子三分冷 提交于 2020-01-01 18:57:46

问题


Matplotlib doesn't give me the visualisation I want

I like the interactive features of Bokeh and I would like to see if someone was able to get it running inside Google Colab?

I installed the library (from the notebook itself) and it showed the installation is successful

!pip install bokeh

but when I use it. It doesn't show anything (not even an error). Just blank output. When I check chrome's Javascript console, I see the follwoing

Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing


回答1:


There's a Bokeh sample in the charts example notebook.

I suspect the important bit you'll need to add is:

from bokeh.io import output_notebook
output_notebook()

And most importantly output_notebook() must be called inside the same cell




回答2:


It did not work for me in Firefox. Switched to Chrome and it worked.



来源:https://stackoverflow.com/questions/48295229/bokeh-inside-google-colab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!