Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HCC docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Holland Computing Center
HCC docs
Commits
ad5e2f61
Commit
ad5e2f61
authored
5 years ago
by
Caughlin Bohn
Committed by
Adam Caprez
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added Conda commands and newer/older notes
parent
29492ea1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
content/guides/running_applications/using_anaconda_package_manager.md
+17
-1
17 additions, 1 deletion
...es/running_applications/using_anaconda_package_manager.md
with
17 additions
and
1 deletion
content/guides/running_applications/using_anaconda_package_manager.md
+
17
−
1
View file @
ad5e2f61
...
...
@@ -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 run 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 run 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment