Just getting ipython setup, but interact doesn't work for some reason
I'm using ipython version 5.1.0 on macOSX 10.11.5 in native bash terminal
I ran the following to double check my setup:
jupyter nbextension enable --py widgetsnbextension --sys-prefix
Enabling notebook extension jupyter-js-widgets/extension...
- Validating: OK
opened up ipython and ran:
In : from __future__ import print_function
...: from ipywidgets import interact, interactive, fixed
...: import ipywidgets as widgets
In : def f(x):
...: return x
In : interact(f, x=10);
AttributeError: 'NoneType' object has no attribute 'session'
I'm not sure what the problem is. If you have any suggestions let me know.
The widgets work in the Jupyter notebook, not in IPython terminal.
@SylvainCorlay it would be nice if the error was a bit more descriptive here.
That is right, you need a web front-end.
Opened ipython/ipywidgets#1037 for a clearer error message. Closing this issue as there's nothing to do in IPython.