Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ssh_scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sofiane Bendoukha
ssh_scripts
Commits
e328eee6
Commit
e328eee6
authored
4 years ago
by
Mathis Rosenhauer
Browse files
Options
Downloads
Patches
Plain Diff
start-jupyter: load python3/unstable module if no include file is given
parent
35560ae0
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
start-jupyter
+6
-3
6 additions, 3 deletions
start-jupyter
with
6 additions
and
3 deletions
start-jupyter
+
6
−
3
View file @
e328eee6
#!/bin/bash
#
# Copyright 20
19
Deutsches Klimarechenzentrum GmbH
# Copyright 20
20
Deutsches Klimarechenzentrum GmbH
#
# All rights reserved.
#
...
...
@@ -37,7 +37,7 @@
# DKRZ's mistral nodes. The script then opens a ssh tunnel to connect
# your local browser to jupyter.
#
# If you indicate an account with the -A
switch
, the script will run
# If you indicate an account with the -A
option
, the script will run
# jupyter in a job on dedicated resources. Otherwise jupyter uses a
# shared interactive node.
#
...
...
@@ -83,7 +83,8 @@ SJ_PARTITION=shared
#
# If indicated, this file will be sourced prior to running jupyter
# notebook. It has to be located on mistral. Set up the environment
# for starting the correct jupyter here.
# for starting the correct jupyter here. If no SJ_INCFILE is given,
# the module python3/unstable is loaded.
SJ_INCFILE
=
""
# Frontend host
...
...
@@ -194,6 +195,8 @@ function source_incfile() {
incfile
=
"
\$
{HOME}/
${
incfile
}
"
fi
commandline
=
"source
${
incfile
}
;
${
commandline
}
"
else
commandline
=
"module load python3/unstable;
${
commandline
}
"
fi
echo
"
${
commandline
}
"
}
...
...
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