Jupyter Notebook on Mint 22.1

I have been using Jupyter Notebook for several years on Mint with interact widgets.
Results were brilliant. Perfect. .
However the latest Mint 22.1 will not run my programs.
I get errors like - cannot find module matplotlib, - cannot find ipywidgets.
Sometimes the code will run, but no widgets are displayed.
I tried with JupyterLab on a minimal interact widget test and it worked once (only).
Obviously I am missing something in this release of Mint 22.1. But what?
Python 3 is loaded. I checked pip list and everything seems to be installed
One possible clue is that attempting to use pip to re-install ipywidgets or matplotlib results in a refusal with the message that these are external applications.
So what now is the correct way to install Jupyter Notebook on a fresh installed Mint 22.1?
Thanks for suggestions.

What is your workflow like? I would recommend switching to more of a project-based workflow and using virtual environments for each (uv is a great tool for managing those). That way, you can install JupyterLab, matplotlib, ipywidgets, etc., uniquely for each project.

Hi Petebachant,
Thanks for your comment. I am not familiar with Python Virtual Environments and have never heard of uv before. Maybe I can find an understandable tutorial on Google.

My difficulty is that I am providing remote educational training material and distribute my Jupyter Notebook .ipynb files, over the internet, to tens/hundreds of students. I recommend that they all install Python3 and follow the instructions of their OS to import and run Jupyter Notebook .ipynb files correctly. It is therefor essential that all Linux distros are able to
pip install Jupyter.

For myself, I always use Mint and until recently, this has been an excellent choice. However the latest version, Mint 22.1 does not show slider widgets when called by “interact” in Jupyter Notebook. Attempts to find out if there is some missing library, reveals that it is no longer possible to use pip install when installing an external application.
If the only solution requires every user now having to build a virtual environment on his PC, laptop or smartphone, this will seriously compromise the support I have been providing to users.