9

When I use jupyter notebook in Chrome, I had the opportunity to show interactive 3d plots, like this: enter image description here

Now I would like to see the same result in the VSCode. Are there any solutions to this thing?

The same code in the VSCode: enter image description here

5
  • what's test_model, would you mind posting the code? Commented Oct 14, 2020 at 2:00
  • 1
    it does not matter as my question is about other thing Commented Oct 16, 2020 at 10:28
  • Have you installed the module IPython? Commented Oct 19, 2020 at 6:42
  • 4
    Now %matplotlib widget should work with the VSCode Jupyter extension, but you need to install the ipympl package: stackoverflow.com/a/64614116/9105334 Commented Mar 2, 2022 at 8:44
  • @tueda You should provide this as an answer. Commented Aug 5, 2022 at 8:34

1 Answer 1

6

You should use %matplotlib widget instead of %matplotlib notebook.

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

2 Comments

Sadly, this throws an exception for me.
I had the same problem, tried that, but the plot does not appear neither in line nor on a separate window

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.