问题遇到的现象和发生背景
调用matplotlib库绘图无法在spyder内展示,但是没有报错
用命令符号%matplotlib inline会显示错误
问题相关代码,请勿粘贴截图
报错如下
WARNING: This is not valid Python code. If you want to use IPython magics, flexible indentation, and prompt removal, we recommend that you save this file with the .ipy extension.
运行结果及报错内容
我的解答思路和尝试过的方法
在偏好工具设置栏里选择了inline 但是无法解决
我想要达到的结果
图形可以在spyder窗口内部展示