71

I am getting an error on the following line in my Jupyter Notebook

% matplotlib inline

I am using Python version 3.7, ipython version 7.0.1

1 Answer 1

125

Spell it as two words, rather than three:

%matplotlib inline
Sign up to request clarification or add additional context in comments.

5 Comments

Okay, this works, but why? In my testing it was Unix that accepted the 3 and Windows that accepted it as two. If this is true across all cases, what is it about Win. vs Linix/Unix with jupyter that causes this error?
With Ubuntu 18.04, Python 3.8 and iPython 7.19, it actually needs two words, and not three.
Thanks! I am just doing a Udacity tutorial and in the tutorial, they use the "wrong" version (% matplotlib inline).
What's the difference between %matplotlib and %matplotlib inline?
%matplotlib displays in a separate window, while inline keeps it within your Jupyter notebook.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.