Jupyter Python Packages and Issues
- Simon Alexander
Owned by Simon Alexander, created
Goal: When using Jupyter how are python packages managed?
Where are Python Packages Installed During a Jupyter Session?
You can use pip list -v
and conda list
to inspect what is in your environment.
Example using the default Python kernel:
# Cell
import sys
print(sys.version)
3.12.3 | packaged by Anaconda, Inc. | (main, May 6 2024, 19:46:43) [GCC 11.2.0]
Package Version Location Installer
------------------------- ----------- ---------------------------------------------------------- ---------
anyio 4.2.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
argon2-cffi 21.3.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
argon2-cffi-bindings 21.2.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
asttokens 2.0.5 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
async-lru 2.0.4 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
attrs 23.1.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
Babel 2.11.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
beautifulsoup4 4.12.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
bleach 4.1.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
Brotli 1.0.9 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
certifi 2024.2.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
cffi 1.16.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
charset-normalizer 2.0.4 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
comm 0.2.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
debugpy 1.6.7 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
decorator 5.1.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
defusedxml 0.7.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
executing 0.8.3 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
fastjsonschema 2.16.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
idna 3.7 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
ipykernel 6.28.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
ipython 8.20.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
ipywidgets 8.1.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jedi 0.18.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
Jinja2 3.1.3 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
json5 0.9.6 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jsonschema 4.19.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jsonschema-specifications 2023.7.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter 1.0.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter_client 8.6.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter-console 6.6.3 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter_core 5.5.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter-events 0.8.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter-lsp 2.2.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter_server 2.10.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyter_server_terminals 0.4.4 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyterlab 4.0.11 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyterlab-pygments 0.1.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyterlab_server 2.25.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
jupyterlab-widgets 3.0.10 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
MarkupSafe 2.1.3 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
matplotlib-inline 0.1.6 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
mistune 2.0.4 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
nbclient 0.8.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
nbconvert 7.10.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
nbformat 5.9.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
nest-asyncio 1.6.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
notebook 7.0.8 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
notebook_shim 0.2.3 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
numpy 2.0.0 /home/<username>/.local/lib/python3.12/site-packages pip
overrides 7.4.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
packaging 23.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
pandocfilters 1.5.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
parso 0.8.3 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
pexpect 4.8.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
pip 24.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages
platformdirs 3.10.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
ply 3.11 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
prometheus-client 0.14.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
prompt-toolkit 3.0.43 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
psutil 5.9.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
ptyprocess 0.7.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
pure-eval 0.2.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
pycparser 2.21 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
Pygments 2.15.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
PyQt5 5.15.10 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
PyQt5-sip 12.13.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
PySocks 1.7.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
python-dateutil 2.9.0.post0 /home/<username>/.local/lib/python3.12/site-packages pip
python-json-logger 2.0.7 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
pytz 2024.1 /home/<username>/.local/lib/python3.12/site-packages pip
PyYAML 6.0.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
pyzmq 25.1.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
qtconsole 5.5.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
QtPy 2.4.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
referencing 0.30.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
requests 2.31.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
rfc3339-validator 0.1.4 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
rfc3986-validator 0.1.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
rpds-py 0.10.6 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
Send2Trash 1.8.2 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
setuptools 69.5.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages
sip 6.7.12 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
six 1.16.0 /home/<username>/.local/lib/python3.12/site-packages pip
sniffio 1.3.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
soupsieve 2.5 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
stack-data 0.2.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
terminado 0.17.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
tinycss2 1.2.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
tornado 6.3.3 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
traitlets 5.7.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
typing_extensions 4.11.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
tzdata 2024.1 /home/<username>/.local/lib/python3.12/site-packages pip
urllib3 2.2.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
wcwidth 0.2.5 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
webencodings 0.5.1 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
websocket-client 0.58.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
wheel 0.43.0 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages
widgetsnbextension 4.0.10 /apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages conda
Note: you may need to restart the kernel to use updated packages.
Notice there are two paths:
The library path of the conda environment that this default kernel is running from:
/apps/s/jupyterlab/miniconda3/lib/python3.12/site-packages
Your local home library path related to the version of Python within this kernel:
/home/<username>/.local/lib/python3.12/site-packages
Can I pip install
?
Can I Use Conda Within My Notebook?
Jupyter Sessions
Issue: Jupyter Doesn’t Start?
Issue: Jupyter Doesn’t Start: Example
Prev | Workshop Home | Next |