Table of Contents | ||
---|---|---|
|
Utility Commands for Custom Kernels
After loading an environment
List your current kernels
Code Block |
---|
jupyter kernelspec list |
Remove a kernel
Code Block |
---|
jupyter kernelspec uninstall {KERNEL_NAME} |
Custom Python Environments in Jupyter
For information on how to create custom conda enviroments, please visit our guide:
Miniconda Environment Set Up - Storrs HPC - UConn Knowledge Base
Begin by activating/creating Load the desired version of python
Code Block |
---|
module load python/3.10.5 |
Create a directory for your desired environment:
Code Block |
---|
condamkdir createmyenv -ncd myenv |
Info |
The python version can be specified as well if necessary:conda create -n myenv python=3.7.3
python -m venv . |
Code Block |
---|
conda. bin/activate myenv |
Once you are in the enirvonmentenvironment, install ipykernel
with the following command:
Code Block |
---|
condapip install ipykernel |
Add the environment to your jupyter kernels:
Code Block |
---|
python -m ipykernel install --user --name=myenv --display-name "myenv" |
Follow the previous instructions to launch jupyter. You should now be able to select the environment we just added:
...
For information on how to create custom conda enviromentsenvironments, please visit our guide:
...
Code Block |
---|
conda activate myenv |
Once you are in the enirvonmentenvironment, install ipykernel
with the following command:
...
Code Block |
---|
python -m ipykernel install --user --name=myenv --display-name "myenv" |
Follow the previous instructions to launch jupyter. You should now be able to select the environment we just added:
...