Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding an interactive IPython shell #322

Closed
alainS opened this issue Mar 29, 2011 · 3 comments
Closed

Embedding an interactive IPython shell #322

alainS opened this issue Mar 29, 2011 · 3 comments
Labels
Milestone

Comments

@alainS
Copy link

alainS commented Mar 29, 2011

The way I understand it you should now be able to simply start a embedded console by

import IPython
IPython.embed()

However, this raises

TraitError: The 'exit_msg' trait of an InteractiveShellEmbed instance must be a string, but a value of u'' <type 'unicode'> was specified.

If we pass a string for exit_msg by

IPython.embed(exit_msg='Whatever')

Then it raises a different error

AttributeError: 'InteractiveShellEmbed' object has no attribute 'set_completer'

Am I missing something here? I am using Python 2.6.1. Thanks a lot.

@takluyver
Copy link
Member

The first error (TraitError) is already fixed in trunk, at least for me - it now expects a unicode string, and gets one. The set_completer error still occurs, though.

@takluyver
Copy link
Member

Fix function call in terminal embed code.

Closed by 6301a14

@takluyver
Copy link
Member

OK, it looks like we'd renamed that function to set_readline_completer. Thanks for the report - let us know if you find more problems.

markvoorhies pushed a commit to markvoorhies/ipython that referenced this issue Apr 21, 2011
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants