简体   繁体   中英

Spyder Notebook Python 2.7

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM