These are chat archives for ipython/ipython

11th
Aug 2015
Adriano
@rsvp
Aug 11 2015 07:18
@minrk that or possibly InteractiveShell.display_page = True but in the Jupyter notebook we got "NameError: name ... not defined" -- so how does one define *Shell properly? I appreciate your help. Thanks
Min RK
@minrk
Aug 11 2015 16:24
Oops, yes. InteractiveShell, not TerminalInteractiveShell.
That would go in your ipython_config.py
Adriano
@rsvp
Aug 11 2015 20:20
@minrk hi, instead of via the config file, how can one properly execute that setting from a notebook input cell?
Min RK
@minrk
Aug 11 2015 20:23
from IPython.core import page
get_ipython().set_hook('show_in_pager', page.as_hook(page.display_page), 0)
Adriano
@rsvp
Aug 11 2015 21:04
@minrk Fantastic, works well to show "foo??" in a notebook cell. Your snippet will become part of my initialization template. Thank you!