问题
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