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. 自动运行%matplotlib内嵌在IPython的笔记本
- 3. 更改Jupyter QtConsole设置
- 4. 咖啡仁死了jupyter qtconsole
- 5. 脚本运行jupyter笔记本自动
- 6. 互动图Python的Jupyter/Matplotlib
- 7. 设置Jupyter的默认配置QtConsole
- 8. IPython和Jupyter之间的区别qtconsole
- 9. 在Jupyter Notebook中运行Tensorflow
- 10. jupyter qtconsole不连接到现有的内核
- 11. 麻烦在Ubuntu上运行ipython -qtconsole 12.04
- 12. 在Jupyter中运行Cython iPython
- 13. 在Jupyter cdef运行Cython
- 14. 如何检测是否运行ipython qtconsole?
- 15. 在python中使用jupyter qtconsole增加窗口中的列数
- 16. 嵌入动画matplotlib在tk
- 17. 动画无法在matplotlib上运行
- 18. 如何在Jupyter Notebook启动时运行自定义Python脚本(启动Spark)?
- 19. Jupyter notbook%matplotlib inline不工作
- 20. Jupyter的Mathjax/Matplotlib字体
- 21. jupyter“%matplotlib notebook”not showing plot
- 22. Jupyter note在Anaconda注意到matplotlib内联错误
- 23. matplotlib配置在jupyter笔记本内联后端
- 24. %pylab内嵌错误“matplotlib/fontList.py3k.cache”
- 25. 不能在jupyter中导入matplotlib
- 26. 流星 - 观察未在自动运行功能内部运行
- 27. 运行Jupyter笔记本
- 28. jupyter笔记本内嵌地块为SVG
- 29. 如何用jupyter更改qtconsole中的monokai pygments风格
- 30. 如何在virtualenv内同时运行Jupyter笔记本和Tensorboard?
真棒。我不知道可以用ipython_config.py文件完成的所有定制工作......如果其他人还没有该文件,请运行'ipython profile create'。 – snd