是否可以使用現有Python shell中的IPython shell作爲shell-inside-a-shell,類似於內置的code.interact()
?從````code.interact()``使用IPython``
15
A
回答
3
嵌入IPython中的recommended way正常工作:
~ $ python
Python 2.7 [...]
>>> from IPython.Shell import IPShellEmbed
>>> ipshell = IPShellEmbed()
>>> ipshell()
In [1]:
1
的Django manage.py shell
可能的情況下調用IPython的外殼,它的實現是這樣的:
import IPython
shell = IPython.Shell.IPShell()
shell.mainloop()
19
在IPython的0.11的API已經大修和殼更容易調用:
import IPython
IPython.embed()
相關問題
- 1. 使用IPython的
- 2. 變量和別名Python的code.interact
- 3. 使用FFmpeg和IPython
- 4. 從IPython的
- 5. 從IPython的
- 6. 停止IPython中從尋找在〜/ .ipython
- 7. 從jupyter_client.manager配置IPython
- 8. 導入從IPython中
- 9. 在iPython Notebook中使用matplotlib.pyplot
- 10. 使用Ply與iPython/Jupyter
- 11. ipython --pylab vs ipython
- 12. 在Python程序中啓動IPython,使用IPython筆記本連接
- 13. ipython與python -m IPython
- 14. 用於IPython中
- 15. 從Windows命令行ipython
- 16. 從OSX終端運行iPython
- 17. 從ipython運行python程序
- 18. 從shell和iPython運行
- 19. 如何從venv運行ipython?
- 20. 分配從IPython筆記本
- 21. 使用iPython/Spyder從Python退出的問題
- 22. 從python模塊中使用ipython magics在筆記本中加載
- 23. 如何從MongoDB中取出數據,而無需使用IPython的
- 24. 使用Windows 7從IPython複製到剪貼板
- 25. iPython從Windows qtconsole ssh到遠程iPython內核
- 26. 禁用iPython Notebook Autoscrolling
- 27. 用於ipython的Emacs
- 28. IPython中不可用
- 29. Pycharm - 當使用蟒控制檯IPython的
- 30. 使用帶有DataNitro的Ipython Notebook