matplotlib / matplotlib/ipympl

Question: should I use `%matplotlib widget` or `%matplotlib ipympl`

Open
#529 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

the README suggests to use
`%matplotlib widget`

however based on a small experiment that I described also here
https://discourse.jupyter.org/t/interactive-matplotlib-in-jupyterlab-no-longer-working/20017/3?u=parmentelat

it seems like using
`%matplotlib ipympl`

works too, and even better in the sense that it works also in vs-code
so, which is best ?

(I have several hundreds of notebooks written with
`%matplotlib notebook`
and that now must be changed for jlab4/nb7 at least, so as far as possible Id like to change them only once ;-)

and thank you for the awesome tool 👍

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README guidance for `%matplotlib widget` and compare it with the reported `%matplotlib ipympl` behavior in JupyterLab and VS Code. Review the linked Discourse experiment and determine what recommendation the documentation should give for existing `%matplotlib notebook` notebooks. Done means the README clearly states which backend to use and where it works.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, matplotlib
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.