Is it possible to use the IPython shell from an existing Python shell, as a shell-inside-a-shell, similarly to the built-in code.interact()
?
views:
54answers:
2
A:
Django manage.py shell
invoke a IPython shell when possible, and it's implemented like this:
import IPython
shell = IPython.Shell.IPShell()
shell.mainloop()
Satoru.Logic
2010-08-06 12:33:50
A:
The recommended way of embedding IPython works fine:
~ $ python
Python 2.7 [...]
>>> from IPython.Shell import IPShellEmbed
>>> ipshell = IPShellEmbed()
>>> ipshell()
In [1]:
ma3
2010-10-14 01:22:03