%matplotlib inline doesn't work on iPython and Jupyter console
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying out Jupyter console for the first time, but can't get the %matplotlib inline magic to work. Below is a screenshot of an example session: The plot shows in a separate window after I run Line 6, and Line 7 doesn't do anything. When I run %matplotlib --list , inline is given as one of the options: Available matplotlib backends: ['osx', 'qt4', 'qt5', 'gtk3', 'notebook', 'wx', 'qt', 'nbagg', 'agg', 'gtk', 'tk', 'ipympl', 'inline'] When I try to use another backend, say qt5 , it gives an error message because I don't have any Qt