Using a Conda environment in Jupyter: Difference between revisions

From Research Computing Center Wiki
Jump to navigation Jump to search
Line 1: Line 1:
== Conda environment ==
== Conda environment ==
A Conda environment is a type of virtual environment. Conda environments are used to contain a set of software that you install (via Conda) into that environment (which is at a specific directory) that may be accessed any time you activate the environment. To learn more about Conda environments, please see our wiki page on creating Conda environments [[Installing Applications on Sapelo2#How to install Conda packages|here]].
A Conda environment is a type of virtual environment. Conda environments are used to contain a set of software that you install (via Conda) into that environment (which is at a specific directory) that may be accessed any time you activate the environment. To learn more about Conda environments, please see our wiki page on creating Conda environments '''[[Installing Applications on Sapelo2#How to install Conda packages|here]].'''


== Open OnDemand ==
== Open OnDemand ==
Open OnDemand is a web-based service that allows users to run software with a graphical user interface (GUI). Please see our wiki page on Open OnDemand [[OnDemand|here]] to learn more.
Open OnDemand is a web-based service that allows users to run software with a graphical user interface (GUI). Please see our wiki page on Open OnDemand [[OnDemand|'''here''']] to learn more.


== Using a Conda environment in Jupyter ==
== Using a Conda environment in Jupyter ==

Revision as of 10:39, 12 December 2023

Conda environment

A Conda environment is a type of virtual environment. Conda environments are used to contain a set of software that you install (via Conda) into that environment (which is at a specific directory) that may be accessed any time you activate the environment. To learn more about Conda environments, please see our wiki page on creating Conda environments here.

Open OnDemand

Open OnDemand is a web-based service that allows users to run software with a graphical user interface (GUI). Please see our wiki page on Open OnDemand here to learn more.

Using a Conda environment in Jupyter

These steps will allow you to access the software you install into a Conda environment within Jupyter Notebook running on Open OnDemand

Create the Conda environment

Create your Conda environment and install any packages you will want to use.

Install ipykernel

While your Conda environment is still activated, install ipykernel to your Conda environment with:

conda install ipykernel
python -m ipykernel install --user --name=my_env

Note: change my_env to whatever the name of your Conda environment is.