2010-08-06 17 views

Odpowiedz

3

recommended way osadzania ipython działa dobrze:

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

In [1]: 
1

Django manage.py shell wywołuje powłokę ipython gdy jest to możliwe, i to realizowane tak:

import IPython 

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

W ipython 0,11 API został przebudowane, a powłoka jest jeszcze łatwiejsza do wywołania:

import IPython 

IPython.embed() 
Powiązane problemy