Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MSc Intro Computational Meteorology Exercises W2024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
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
Aiko Voigt
MSc Intro Computational Meteorology Exercises W2024
Commits
1029a342
Commit
1029a342
authored
9 months ago
by
Aiko Voigt
Browse files
Options
Downloads
Patches
Plain Diff
Adds attempt to create python kernel for teachinghub, not yet working
parent
018e883e
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-kernel/setup-python-kernel.sh
+19
-0
19 additions, 0 deletions
python-kernel/setup-python-kernel.sh
with
19 additions
and
0 deletions
python-kernel/setup-python-kernel.sh
0 → 100644
+
19
−
0
View file @
1029a342
# move to SRV home directory
cd
/srvfs/home/avoigt
KNAME
=
"intro-comp-meteo-ex-w2024"
# name of pyhton kernel
ROOTPREFIX
=
"/srvfs/home/avoigt/micromamba"
module load micromamba
micromamba create
-n
$KNAME
-r
$ROOTPREFIX
micromamba
install
-c
conda-forge
-n
$KNAME
-r
$ROOTPREFIX
xarray
\
pandas
\
numpy
\
matplotlib
\
cartopy
\
netcdf4
micromamba
install
-c
conda-forge
-n
$KNAME
-r
$ROOTPREFIX
dask
\
zarr
micromamba
install
-c
conda-forge
-n
$KNAME
-r
$ROOTPREFIX
cdsapi
# create Jupyter kernel and make available
micromamba
install
-c
conda-forge
-n
$KNAME
-r
$ROOTPREFIX
ipykernel
${
ROOTPREFIX
}
/envs/
${
KNAME
}
/bin/python3
-m
ipykernel
install
--user
--name
=
$KNAME
# export evironment setup to env.txt
micromamba
env export
-p
${
ROOTPREFIX
}
/envs/
${
KNAME
}
/
>
env.txt
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