Kernel not functioning in JupyterHub (LTJH) on Raspberry Pi 5
Hi! We’ll need more information before we can help you, ideally enough to reproduce your problem.
Have a read through
Hi @manics , sure thing.
I facing that in a terminal instance within the jupyterhub I have a set of python packages installed that are not passed to the kernel of notebooks of the same users of the jupyterhub.
I cannot install via pip e.g., pip install in the terminal instance, since I get this error message:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
but I can install via the notebook using !pip install .
So, my guess is that there are two kernels one is used in the notebooks and one is used in the terminal.
What if you use %pip install
via the notebook? (Which is what you should be using inside a running notebook in modern Jupyter these days, since 2019. I know the TLJH is still using old tech, but I think that is what you should be using.)