-1

I am new here. My question concerns trying to get a particular script to run, which is a script I got from someone else.

In the 5th line of the script they write the following:

get_ipython().magic('matplotlib inline')

I have tried running this script from powershell and get the following error:

name: get_ipython is not defined

According to Anaconda, I have ipython installed. I have tried running this script via the Anaconda Prompt, and it still will not run. I even tried importing ipython with an import command and still no luck.

Any ideas?

  • Ankur
Ankur B.
  • 313
  • 1
  • 3
  • 6
  • check out [this page](https://stackoverflow.com/questions/32538758/nameerror-name-get-ipython-is-not-defined) hope this helps – anonymous Aug 20 '18 at 16:32

1 Answers1

1

you have to run your script with iPython

e.g.

$ ipython myscript.py
anonymous
  • 39
  • 7