在jupyter qtconsole中自动运行%matplotlib内联

Ale*_*der 7 matplotlib qtconsole jupyter

有没有办法更改配置文件以使jupyter qtconsole在启动时运行以下命令?:

%matplotlib inline
Run Code Online (Sandbox Code Playgroud)

scr*_*ver 10

该行添加到ipython_config.py文件(没有ipython_qtconsole_config.py文件):

c.InteractiveShellApp.matplotlib = 'inline'
Run Code Online (Sandbox Code Playgroud)

  • 真棒.我不知道可以使用ipython_config.py文件完成的所有自定义...如果其他人还没有该文件,请运行`ipython profile create`. (2认同)