Closed pibion closed 2 years ago
Maybe --user needs to be after install?
Please double check in the official docs: https://ipython.readthedocs.io/en/stable/install/kernel_install.html
python3 -m venv AMY
source AMY/bin/activate
# Then I wanted to see if I could install something
python3 -m pip install requests
pip install ipykernel
python -m ipykernel install --user --name=AMY
It works fine, it was just the wrong position of --user
, for example:
python -m ipykernel --user install
launches ipykernel instead of installing it
I'm trying to turn a python environment into a jupyter kernel (see https://github.com/det-lab/jupyterhub-deploy-kubernetes-jetstream/issues/80).
Following and sometimes modifying suggestions at https://janakiev.com/blog/jupyter-virtual-envs/, I tried the following commands:
The install commands seemed to work - I could see ipykernel and requests stuff in
AMY/lib/python3.8/site-packages/
. The output from the above commands wasBut when I opened a new notebook, there was no additional kernel option.
@zonca do you know how to create a kernel from a python environment?