1

I tried to see the difference between using %matplotlib inline and without this statement. But there is no difference between two output. Then what is its use ?

Output without %matplotlib inline line: enter image description here

Output with %matplotlib inline: enter image description here

5
  • I have gone through the [documentation] ipython.readthedocs.io/en/stable/interactive/plotting.html) but it is not clear to me. Commented Jun 22, 2018 at 17:14
  • Your jupyter may be configured in a way to use %matplotlib inline by default, hence you do not see a difference. Commented Jun 22, 2018 at 17:23
  • How can I see that? I want to see the difference. Commented Jun 22, 2018 at 17:26
  • 1
    You would see the difference by choosing another backend. E.g.%matplotlib notebook or %matplotlib tk. Commented Jun 22, 2018 at 17:26
  • Ok "%matplotlib notebook " worked Commented Jun 22, 2018 at 17:29

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.