Using jupyter_console as embedded shell

Frédéric Mantegazza <[email protected]>
Newsgroups gmane.comp.python.ipython.devel
Organization CEA-Grenoble
Message-ID <[email protected]>
Hi!

Is there a direct matching of the InteractiveShellEmbed in
jupyter_console ? I tried to replace:

  from IPython.terminal.embed import InteractiveShellEmbed
  ipshell = InteractiveShellEmbed(...)
  ipshell.mainloop()

with:

  from jupyter_console.interactiveshell import ZMQTerminalInteractiveShell
  ipshell = ZMQTerminalInteractiveShell(...)
  ipshell.mainloop()

but I get an exception:

"/opt/miniconda2/lib/python2.7/site-packages/jupyter_console/interactiveshell.py",
 line 460, in wait_for_kernel
    self.client.hb_channel.unpause()
AttributeError: 'NoneType' object has no attribute 'hb_channel'

I do have a kernel running (launched with ipython notebook), but I may
need to give the client additional informations?

Thanks for your help,

-- 
    Frédéric MANTEGAZZA             CEA-Grenoble
    Tel.     : 33 (0) 476 207 617   INAC/SPSMS/MDN
    Fax      : 33 (0) 476 483 906   17, rue des Martyrs
    Courriel : [email protected]    F-38054 Grenoble Cedex 09

_______________________________________________
IPython-dev mailing list
[email protected]
https://mail.scipy.org/mailman/listinfo/ipython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.