首页 文章

谷歌Colab里面的散景

提问于
浏览
0

Matplotlib没有给我我想要的可视化

我喜欢Bokeh的互动功能,我想看看是否有人能够在Google Colab内部运行它?

我安装了库(从笔记本本身),它显示安装成功

!pip install bokeh

但是当我使用它时 . 它没有显示任何内容(甚至没有错误) . 只是空白输出 . 当我检查chrome的Javascript控制台时,我看到了以下内容

Bokeh:错误:无法运行BokehJS代码,因为缺少BokehJS库

1 回答

  • 4

    charts example notebook中有一个散景样本 .

    我怀疑你需要添加的重要部分是:

    from bokeh.io import output_notebook
    output_notebook()
    

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

相关问题