interact not functioning properly #10087

Closed
johnashcroft105 opened this Issue Dec 12, 2016 · 4 comments

Projects

None yet

3 participants

@johnashcroft105
johnashcroft105 commented Dec 12, 2016 edited
  • 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 [1]: from __future__ import print_function
   ...: from ipywidgets import interact, interactive, fixed
   ...: import ipywidgets as widgets
   ...: 
  • and everything imported fine.
In [2]: def f(x):
   ...:       return x
   ...: 

In [3]: interact(f, x=10);
....
AttributeError: 'NoneType' object has no attribute 'session'

logfile attached:
interact_logfile.txt

I'm not sure what the problem is. If you have any suggestions let me know.

Thanks

@takluyver
Member

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.

@johnashcroft105
@SylvainCorlay
Member

That is right, you need a web front-end.

@takluyver takluyver added this to the no action milestone Jan 12, 2017
@takluyver takluyver referenced this issue in ipython/ipywidgets Jan 12, 2017
Closed

Clear error when using widgets outside kernel #1037

@takluyver
Member

Opened ipython/ipywidgets#1037 for a clearer error message. Closing this issue as there's nothing to do in IPython.

@takluyver takluyver closed this Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment