Jupyter中直接显示Matplotlib的图形方法

一.使用以下cmd命令生成ipython_config.py 文件

ipython profile create 

二.在ipython_config.py中添加以下代码

c.InteractiveShellApp.matplotlib = 'inline' 

注意不是在ipython_qtconsole_config.py中添加上述代码.

如下图所示:

以上这篇Jupyter中直接显示Matplotlib的图形方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持来客网。