Widgets not showing in NBViewer

别说谁变了你拦得住时间么 提交于 2020-01-04 05:19:09

问题


I have an iPython Notebook with an interactive slider widget:

To share the notebook, I would like to use the link provided by NBViewer. This would allow me to share the notebook with people that don't use Python. Unfortunately, the widget does not show when viewing the NBViewer link:

Is there something I need to do to make widgets work with NBViewer?


回答1:


Widgets are not shown in nbviewer with current ipython 2.x.

IPython 3 is supposed to add persistent widgets that can be shown by nbviewer.

The release of ipython 3 was scheduled for this fall but it is likely to happen early next year.




回答2:


I had to downgrade ipywidget from version 7.0.3 to get nbviewer showing ipywidget.

pip install ipywidgets==6.0.0


来源:https://stackoverflow.com/questions/27134727/widgets-not-showing-in-nbviewer

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