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