I'm using the spyder notebook from anaconda 2. The first line of my code is:
get_ipython().magic('matplotlib inline')
which returns the following error message
get_ipython().magic('matplotlib inline')
NameError: name 'get_ipython' is not defined
I'm new to python so any help would be greatly appreciated .
您需要首先从IPython
模块导入get_ipython
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.