python - Embedded interactive shell in IPython -


Before switching to ipython v0.11 (using Python 2.6.1), it opens an interactive ipathon shell Example was possible to use, for example

  from IPython Import Shell IPShellEmbed ipshell = IPShellEmbed () ipshell () #This will start the IPython call anywhere in your program   

"embedded shell called interactive shell InteractiveShellEmbed has been reintroduced in a standalone subclass. All embedding logic has been removed from the base class and inserted into the embedded subclass (see and see).

The way I understand it, you might just be able to start a console.

  imported ipathon ipithon.ed ()   

However, it arises

TraitError: The 'exit_msg' attribute of an InteractiveShellEmbed example should be a string, but the value of the U was specified.

If we pass string for IPython.e by exit_msg

  Mbed (exit_msg = 'whatever') < / Code>  

Then it raises a different error

Attribute Enter: There is no attribute 'set_completer' in the 'Interactive shell embedded' object

Does anyone else face this problem? Otherwise this bug might be because it is the developer version after all.

These days (3.0+) all you need to do is:

  Import from iPod imports; If you want to embed another iPhipon shell in IPython (recursively), then it was a long time that it was not supported, but this problem was compromised last year.     

Comments