Skip to content
Snippets Groups Projects

Add activation and license note for conda

Merged Caughlin Bohn requested to merge conda_activate_common into master
1 file
+ 15
3
Compare changes
  • Side-by-side
  • Inline
@@ -18,13 +18,13 @@ straightforward.
@@ -18,13 +18,13 @@ straightforward.
- [Using Anaconda](#using-anaconda)
- [Using Anaconda](#using-anaconda)
- [Searching for Packages](#searching-for-packages)
- [Searching for Packages](#searching-for-packages)
- [Creating custom Anaconda Environments](#creating-custom-anaconda-environments)
- [Creating Custom Anaconda Environments](#creating-custom-anaconda-environments)
- [Using /common for environments](#using-common-for-environments)
- [Using /common for environments](#using-common-for-environments)
- [Adding and Removing Packages from an Existing Environment](#adding-and-removing-packages-from-an-existing-environment)
- [Adding and Removing Packages from an Existing Environment](#adding-and-removing-packages-from-an-existing-environment)
- [Moving and Recreating Existing Environment](#moving-and-recreating-existing-environment)
- [Moving and Recreating Existing Environment](#moving-and-recreating-existing-environment)
- [Remove Unused Anaconda Packages and Caches](#remove-unused-anaconda-packages-and-caches)
- [Remove Unused Anaconda Packages and Caches](#remove-unused-anaconda-packages-and-caches)
- [Creating custom GPU Anaconda Environment](#creating-custom-gpu-anaconda-environment)
- [Creating Custom GPU Anaconda Environment](#creating-custom-gpu-anaconda-environment)
- [Creating custom MPI Anaconda Environment](#creating-custom-mpi-anaconda-environment)
- [Creating Custom MPI Anaconda Environment](#creating-custom-mpi-anaconda-environment)
- [Using an Anaconda Environment in a Jupyter Notebook](#using-an-anaconda-environment-in-a-jupyter-notebook)
- [Using an Anaconda Environment in a Jupyter Notebook](#using-an-anaconda-environment-in-a-jupyter-notebook)
- [Using Mamba](#using-mamba)
- [Using Mamba](#using-mamba)
@@ -252,6 +252,18 @@ conda remove -n mynumpy --all
@@ -252,6 +252,18 @@ conda remove -n mynumpy --all
{{< /highlight >}}
{{< /highlight >}}
{{% /panel %}}
{{% /panel %}}
 
The migrated environment can then be activated with:
 
 
{{% panel theme="info" header="Activate new environment" %}}
 
{{< highlight bash >}}
 
conda activate $COMMON/mynumpy
 
{{< /highlight >}}
 
{{% /panel %}}
 
 
**Please note** that you'll need to add the `#SBATCH --licenses=common` directive to your submit scripts
 
as described [here]({{< relref "using_the_common_file_system" >}}) in order to use environments
 
in `$COMMON`.
 
### Remove Unused Anaconda Packages and Caches
### Remove Unused Anaconda Packages and Caches
By default, conda environments are installed in the user’s home directory at `~/.conda/envs`.
By default, conda environments are installed in the user’s home directory at `~/.conda/envs`.
Loading