jupyter-notebook - 在 Google Colaboratory 中使用小部件

标签 jupyter-notebook widget jupyter visualization google-colaboratory

是否可以在 Google Colaboratory 中使用 Jupyter Widgets?

我关注了instructions here ,都带有 ipyleaflet 和 bqplot

但我收到此错误消息。

Failed to display Jupyter Widget of type Map.

If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.

If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.

可以使用这些小部件吗?还是我在某个地方犯了错误?

最佳答案

现在 Google Colab 有了自己的一套小部件。请参阅此处的示例。

https://colab.research.google.com/notebooks/widgets.ipynb

不过,我还没有比较它们与普通 Jupyter Widget 有多大不同。

19 年 2 月更新

现在支持

ipywidgets。您可以测试运行 the tutorials .

关于jupyter-notebook - 在 Google Colaboratory 中使用小部件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47686323/

相关文章:

dart - 如何在 Flutter 上为 Material 小部件设置宽度?

python - 我该如何修复 : ImportError: cannot import name 'PandaRequest' ?

python - Pandas DataFrame.groupby() 到具有多列值的字典

jupyter-notebook - 如何更改 Jupyter 调试器中的输入文本框大小?

python - 在 Jupyter Notebook 中调用 JS 文件并共享数据

javascript - 如何将 HTML 小部件代码转换为 NEXTjs 代码以在应用程序中使用(CoinMarketCap 价格选取框)

java - dataSnapshot 检索最后一条消息但难以在小部件上显示它......?

python - 新的 jupyter notebook 中的 sympy pretty printing 坏了吗?

python - 如何在jupyter笔记本中并排显示图像

ipython - iPython Notebook Markdown Cell 中的语法高亮