Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Computer Resources
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Computer Resources
Commits
c8291167
Commit
c8291167
authored
3 years ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
conda kernel script
parent
2d07c2c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Python/conda-kernel-setup.sh
+20
-0
20 additions, 0 deletions
Python/conda-kernel-setup.sh
with
20 additions
and
0 deletions
Python/conda-kernel-setup.sh
0 → 100644
+
20
−
0
View file @
c8291167
#!/bin/bash
# By MB
# Jumpstart a python environment for my students
# Activate anaconda module
module load anaconda3
# Create a new kernel that is based on anaconda, but with some additional packages
# potentially specify which python version, e.g. python=3.8
conda create
-y
-n
ClimatePy3 numpy ipykernel zarr
# This will create a ~/.conda/envs/ClimatePy3/ directory
# using ~/.conda/envs/ClimatePy3/bin/python3 in a script is possible
# activate that environment by sourcing the conda environment
source
$(
dirname
$(
which conda
))
/../etc/profile.d/conda.sh
# and activating your new
conda activate ClimatePy3
# deactivate environment
conda deactivate
# FIN
\ No newline at end of file
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