module 'IPython.display' has no attribute 'matplotlib_inline'
时间: 2023-08-05 22:04:06 浏览: 299
matplotlib绘图可视化知识点整理
引用\[3\]中提到了在Pycharm中不支持IPython的内置magic函数。所以可能出现"module 'IPython.display' has no attribute 'matplotlib_inline'"的错误是因为你在Pycharm中使用了IPython的内置magic函数。在Pycharm中,你可以尝试使用其他方式来显示matplotlib图形,比如使用plt.show()函数来显示图形。
#### 引用[.reference_title]
- *1* *2* [python中的matplotlib用法](https://blog.csdn.net/xiaodongxiexie/article/details/53123371)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [%matplotlib inline是什么意思](https://blog.csdn.net/guoyang768/article/details/86233499)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文