Skip to content

Unable to render matplotlib widgets correctly with Jupyter Notebook Renderers #16342

Discussion options

You must be logged in to vote

To get interactive outputs in notebooks, you need to run the following magic %matplotlib widget
https://matplotlib.org/stable/users/explain/figure/interactive.html#jupyter-notebooks-jupyterlab

I'm surprised it works in Jupyter, I've tried Jupyter Lab and get the exact same output in VS Code as well (i.e. a non-interactive image).
Running the above magic before running the cell works as expected.
Not you need to install ipympl, see the link.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SNOWBEAR-SCI
Comment options

@DonJayamanne
Comment options

Answer selected by DonJayamanne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants