AttributeError:'NoneType'对象没有属性'run_line_magic'显示pca程序

时间:2019-03-21 18:09:29

标签: python matplotlib ipython

AttributeError: 'NoneType' object has no attribute 'run_line_magic' showing pca program 

我已经搜索了,但是什么也没得到。

import numpy, scipy, matplotlib.pyplot as plt, sklearn, urllib, IPython.display

from IPython import get_ipython
get_ipython().run_line_magic('matplotlib', 'inline')

显示的错误是

Traceback (most recent call last):
File "pca2.py", line 3, in <module>
get_ipython().run_line_magic('matplotlib', 'inline')
AttributeError: 'NoneType' object has no attribute 'run_line_magic'

0 个答案:

没有答案