2010-08-06 7 views

Respuesta

3

El recommended way de incrustar IPython funciona bien:

~ $ python 
Python 2.7 [...] 
>>> from IPython.Shell import IPShellEmbed 
>>> ipshell = IPShellEmbed() 
>>> ipshell() 

In [1]: 
1

Django manage.py shell invocan una cáscara IPython cuando sea posible, y se implementa como esto:

import IPython 

shell = IPython.Shell.IPShell() 
shell.mainloop() 
19

En IPython 0,11 la API ha sido revisado y el shell es aún más fácil de invocar:

import IPython 

IPython.embed() 
Cuestiones relacionadas