From 2812819a09c7e4b271ecfb304bd7bd0e1f17297a Mon Sep 17 00:00:00 2001 From: Caughlin Bohn Date: Thu, 30 May 2019 13:46:53 -0500 Subject: [PATCH 1/2] Added Conda commands and newer/older notes --- .../using_anaconda_package_manager.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/content/guides/running_applications/using_anaconda_package_manager.md b/content/guides/running_applications/using_anaconda_package_manager.md index 114dbcd..2e83890 100644 --- a/content/guides/running_applications/using_anaconda_package_manager.md +++ b/content/guides/running_applications/using_anaconda_package_manager.md @@ -96,6 +96,10 @@ at a minimum a name for the environment, and at least one package to install.  For example, suppose we wish to create a new environment, and need version 1.8 of NumPy. +{{% notice info %}} +The `conda create` command must be ran on the login node. +{{% /notice %}} + {{% panel theme="info" header="Create a new environment by providing a name and package specification" %}} {{< highlight bash >}} conda create -n mynumpy numpy=1.8  @@ -167,6 +171,10 @@ conda install ipython {{< /highlight >}} {{% /panel %}} +{{% notice info %}} +The `conda install` command must be ran on the login node. +{{% /notice %}} + If you aren't currently in the environment you wish to install the package in, add the `-n `option to specify the name. @@ -193,6 +201,11 @@ conda remove -n mynumpy ipython To exit an environment, we *deactivate* it. {{% panel theme="info" header="Exit current environment" %}} +Newer versions of anaconda: +{{< highlight bash >}} +conda deactivate +{{< /highlight >}} +Older versions of anaconda: {{< highlight bash >}} source deactivate {{< /highlight >}} @@ -254,7 +267,7 @@ Jupyter Notebook. To do so, follow the steps below, replacing {{< /highlight >}} 4. Once you have the environment set up, deactivate it: - {{< highlight bash >}}source deactivate{{< /highlight >}} + {{< highlight bash >}}conda deactivate{{< /highlight >}} 5. To make your conda environments accessible from the worker nodes, enter the following commands: @@ -269,6 +282,9 @@ Jupyter Notebook. To do so, follow the steps below, replacing **Note**: Step 5 only needs to be done once. Any future created environments will automatically be accessible from SLURM notebooks once this is done. + +**Note**: For older version of anaconda, use `source deactivate` to +deactivate the environment. {{% /notice %}} 6. Login to JupyterHub at https://crane.unl.edu -- GitLab From 46e321e396535d63b206e455cef3348647630c00 Mon Sep 17 00:00:00 2001 From: Adam Caprez Date: Fri, 2 Aug 2019 18:25:11 +0000 Subject: [PATCH 2/2] Update using_anaconda_package_manager.md --- .../running_applications/using_anaconda_package_manager.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/guides/running_applications/using_anaconda_package_manager.md b/content/guides/running_applications/using_anaconda_package_manager.md index 2e83890..a383d75 100644 --- a/content/guides/running_applications/using_anaconda_package_manager.md +++ b/content/guides/running_applications/using_anaconda_package_manager.md @@ -97,7 +97,7 @@ install.  For example, suppose we wish to create a new environment, and need version 1.8 of NumPy. {{% notice info %}} -The `conda create` command must be ran on the login node. +The `conda create` command must be run on the login node. {{% /notice %}} {{% panel theme="info" header="Create a new environment by providing a name and package specification" %}} @@ -172,7 +172,7 @@ conda install ipython {{% /panel %}} {{% notice info %}} -The `conda install` command must be ran on the login node. +The `conda install` command must be run on the login node. {{% /notice %}} If you aren't currently in the environment you wish to install the -- GitLab