Google Colab内部的散景 [英] Bokeh inside Google Colab
问题描述
Matplotlib没有给我我想要的可视化效果
Matplotlib doesn't give me the visualisation I want
我喜欢Bokeh的交互功能,我想看看是否有人能够使其在Google Colab中运行?
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
但是当我使用它时.它什么也没显示(甚至没有错误).只是空白输出.当我检查chrome的Javascript控制台时,看到以下提示
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:错误:无法运行BokehJS代码,因为BokehJS库是 失踪
Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing
推荐答案
I suspect the important bit you'll need to add is:
from bokeh.io import output_notebook
output_notebook()
最重要的是,必须在同一单元格内调用output_notebook()
And most importantly output_notebook()
must be called inside the same cell
这篇关于Google Colab内部的散景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!