Follow these steps to run a jupyter notebook inside a python virtual environment where you can install all the packages you need for your project.
module load python/3.10 python -m venv jupyter-tensorflow cd jupyter-tensorflow source bin/activate pip install ipykernel python -m ipykernel install --user --name=jupyter-tensorflow pip install <other things you need, like tensorflow>
jupyter kernelspec remove jupyter-tensorflow rm -r -f jupyter-tensorflow