Installing Jypyter environment

I am using Python 3.10.5 on Windows 10 pro.

I tried to use pip to install the following script

python -m pip install --upgrade jupyter
python -m pip install --upgrade jupyter_contrib_nbextensions
python -m pip install --upgrade webgui_jupyter_widgets
jupyter nbextension install --user --py webgui_jupyter_widgets
jupyter nbextension enable --user --py webgui_jupyter_widgets

accoding to the following url https://ngsolve.org/downloads
However, it says that notebook is too new to install and even when I installed the older versions of the notebook, still it did not work out.

If you go here:

to the very end, I say how I installed it. I do this:

First, install it by:

sudo apt update
sudo apt install jupyter
pip install --upgrade ipykernel
pip install webgui_jupyter_widgets
jupyter nbextension install --user --py widgetsnbextension
jupyter nbextension enable --user --py widgetsnbextension
jupyter nbextension install --user --py webgui_jupyter_widgets
jupyter nbextension enable --user --py webgui_jupyter_widgets

I think the main thing is doing the sudo apt install jupyter, and the ipykernel.

I am using Windows 10, so the install procedure is a bit different.
However I found out that when I do the following command

jupyter contrib nbextension install --user

I receive the following error.

  File "C:\Program Files\Python310\lib\site-packages\jupyter_nbextensions_configurator\__init__.py", line 18, in <module>
    from notebook.base.handlers import APIHandler, IPythonHandler
ModuleNotFoundError: No module named 'notebook.base'

According to Bing AI, I have to user older Jupyter Notebook.

In Jupyter Notebook version 7.0 or later, this error occurs because the notebook.base module has been removed.2 Therefore, downgrading the Jupyter Notebook version to 6.5 or lower may resolve the issue. Therefore, downgrading the Jupyter Notebook version to 6.5 or lower may resolve the issue.