Jupyter Notebooks, interactive matplotlib plots

I’m running Jupyter (installed via pamac install jupyter-notebook) in my browser; I need the functionalities of ipywidgets to manipulate matplotlib plots.

I tried following several guides (including this post and this page), but I can’t find a way to get it working.

I tried installing the python-ipywidget package, using pip to install jupyter_contrib_nbextensions, and even installing the AUR’s jupyter-nbextension-rise, but everytime I can’t find a way to enable it in Jupyter. All guides suggest something like jupyter contrib nbextension install --user, but I get the error:

Jupyter command `jupyter-contrib` not found.

So I change “jupyter” to “jupyter lab” or “jupyter notebook”, and then I get:

jupyter-lab: error: argument --user: expected one argument

… so I remove the “–user” argument, and then get:

[C 2025-03-24 18:57:47.111 ServerApp] No such file or directory: /home/tome/.ipython/profile_default/contrib

… at which point I’m out of ideas…