6
A
回答
8
此行添加到ipython_config.py
文件(不該ipython_qtconsole_config.py
文件):
c.InteractiveShellApp.matplotlib = 'inline'
2
在你ipython_config.py
文件,你可以通過設置c.InteractiveShellApp.exec_lines
指定命令,在啓動時運行(包括魔術%命令) 。例如,
c.InteractiveShellApp.exec_lines = """
%matplotlib inline
%autoreload 2
import your_favorite_module
""".split('\n')
+1
根據文檔http://ipython.readthedocs.io/en/stable/development/config.html,默認情況下,'ipython_config.py'在'$ HOME/.ipython/profile_default /'下。 –
1
打開文件~/.ipython/profile_default/ipython_config.py
,和
c.InteractiveShellApp.code_to_run = ''
==>
c.InteractiveShellApp.code_to_run = '%pylab inline'
相關問題
- 1. Jupyter筆記本失敗當我jupyter筆記本運行%qtconsole跑%qtconsole
- 2. 咖啡仁死了jupyter qtconsole
- 3. 更改Jupyter QtConsole設置
- 4. 腳本運行jupyter筆記本自動
- 5. 互動圖Python的Jupyter/Matplotlib
- 6. 在Jupyter Notebook中運行Tensorflow
- 7. 在Jupyter中運行Cython iPython
- 8. 在python中使用jupyter qtconsole增加窗口中的列數
- 9. 動畫無法在matplotlib上運行
- 10. Jupyter中的終端如何自動運行bash而不是sh
- 11. 如何在Jupyter Notebook啓動時運行自定義Python腳本(啓動Spark)?
- 12. jupyter「%matplotlib notebook」not showing plot
- 13. %pylab內嵌錯誤「matplotlib/fontList.py3k.cache」
- 14. Jupyter note在Anaconda注意到matplotlib內聯錯誤
- 15. 不能在jupyter中導入matplotlib
- 16. 在tkinter中運行matplotlib
- 17. 如何用jupyter更改qtconsole中的monokai pygments風格
- 18. jupyter筆記本內嵌地塊爲SVG
- 19. 運行Jupyter筆記本
- 20. 如何在virtualenv內同時運行Jupyter筆記本和Tensorboard?
- 21. 在bash內核的jupyter筆記本中運行python代碼
- 22. 本地在不同的CPU核心上運行jupyter內核?
- 23. 嵌入ipython qtconsole並傳遞對象
- 24. 如何在特定的Conda環境中運行QtConsole?
- 25. 在Jupyter運行計劃(fka iPython)
- 26. MobX自動運行和內部構造
- 27. 如何在Jupyter中啓動IPython內核?
- 28. 在特定環境中啓動ipython qtconsole
- 29. Matplotlib自動縮放
- 30. 自動運行內更新集合,無需重新運行(Meteor.JS)
真棒。我不知道可以用ipython_config.py文件完成的所有定製工作......如果其他人還沒有該文件,請運行'ipython profile create'。 – snd