XBB
XBB

Reputation: 109

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 .

Upvotes: 0

Views: 243

Answers (1)

Naimish Agarwal
Naimish Agarwal

Reputation: 516

You need to first import get_ipython from IPython module.

Upvotes: 1

Related Questions