[IPython-dev] wrong documentation? embedding IPython example doesn't work (for me)

Jiri Machala jiri.machala at xura.com
Tue Jan 3 05:17:19 EST 2017


Hello,
I'm looking to integrate interactive shell to extended unittests framework I work on and I wanted to use IPython for that. But when I tried the example from http://ipython.readthedocs.io/en/stable/interactive/reference.html#embedding-ipython - embed_class_long.py it doesn't seem to work properly - after exiting instance of InteractiveShellEmbed for the first time, next time it should open it just displays both banner and exit messages and no actual shell opens.

Calling IPython.embed() works ok, but I need to set custom banner and new commands (magics in IPython lingo?) which I think isn't possible that way

I'll be grateful for any guesses why the manual example doesn't work or what should I change/test/etc

(I'm using python 2.7 , IPython version 5.0.0 on Linux; tried also python 3.4.3 with same result)

Jiri Machala

________________________________
"This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Xura, Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to: security at xura.com. Thank You."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20170103/78baabdf/attachment.html>


More information about the IPython-dev mailing list