There's an Ipython notebook sampling.ipynb from the repository https://github.com/AllenDowney/CompStats.
This notebook generally works just fine at PythonAnywhere, but with one exception: The ipython slider widget does not display at all.
The code, spread over several cells, is in part:
from ipywidgets import interact, interactive, fixed
import ipywidgets as widgets
slider = widgets.IntSlider(min=10, max=1000, value=100)
interact(plot_sample_stats, n=slider, xlim=fixed([55, 95]))
What we see is the plot, but with no visible widget. A check of Developer tools in Chrome showed some error involving widgets.
Some research suggests that maybe there is an ipywidgets version issue (reference: https://github.com/jupyter/notebook/issues/1386#issuecomment-213565839)
pip install ipywidgets==5.0.0
jupyter nbextension enable --py widgetsnbextension
I didn't want to try these for fear of messing up something.
What should I do to get the widget to work?