File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 9
9
form :
10
10
- auto_accounts
11
11
- mode
12
+ - working_dir
12
13
- bc_num_hours
13
14
- node_type
14
15
- gpus
@@ -68,6 +69,12 @@ attributes:
68
69
options :
69
70
- ["Jupyter Lab", "1"]
70
71
- ["Jupyter Notebook", "0"]
72
+ working_dir :
73
+ widget : " path_selector"
74
+ label : " Root Directory"
75
+ data-target-file-type : dirs # Valid values are: files, dirs, or both
76
+ readonly : false
77
+ help : " Select your project directory; defaults to $HOME"
71
78
num_cores :
72
79
widget : " number_field"
73
80
label : " Number of cores"
Original file line number Diff line number Diff line change @@ -4,11 +4,12 @@ category: Interactive Apps
4
4
subcategory : Servers
5
5
role : batch_connect
6
6
description : |
7
- This app will launch a [Jupyter] server using [Python] on the [Ascend ], [Owens] or
8
- [Pitzer] clusters .
7
+ Launch a [Jupyter] server with [Python] on [Cardinal ], [Ascend], or [Pitzer].
8
+ Check the [Changelog] for the recent updates .
9
9
10
10
[Jupyter]: https://jupyter.org/
11
11
[Python]: https://www.python.org/
12
- [Owens]: https://www.osc.edu/resources/technical_support/supercomputers/owens
12
+ [Cardinal]: https://www.osc.edu/resources/technical_support/supercomputers/cardinal
13
+ [Ascend]: https://www.osc.edu/resources/technical_support/supercomputers/ascend
13
14
[Pitzer]: https://www.osc.edu/resources/technical_support/supercomputers/pitzer
14
- [Ascend ]: https://www.osc.edu/vocabulary/systems/ascend
15
+ [Changelog ]: https://www.osc.edu/resources/technical_support/hpc_changelog?keys=jupyter
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ source /bin/find_host_port
8
8
source /bin/save_passwd_as_secret
9
9
source /bin/create_salt_and_sha1
10
10
<% else -%>
11
+
11
12
[[ $(type -t module) == "function" ]] && export -f module
12
13
13
14
# Find available port to run server on
@@ -49,7 +50,13 @@ export JUPYTERLAB_WORKSPACES_DIR=$PWD
49
50
export jupyter_api="$JUPYTER_API"
50
51
51
52
# Notebook root directory
52
- export NOTEBOOK_ROOT="${NOTEBOOK_ROOT:-${HOME}}"
53
+ working_dir="<%= Pathname . new ( context . working_dir ) %> "
54
+ USER_SELECT_ROOT="${working_dir:-$HOME}"
55
+ if [[ -r "$USER_SELECT_ROOT" ]]; then
56
+ export NOTEBOOK_ROOT="$USER_SELECT_ROOT"
57
+ else
58
+ export NOTEBOOK_ROOT="$HOME"
59
+ fi
53
60
54
61
# Generate Jupyter configuration file with secure file permissions
55
62
(
You can’t perform that action at this time.
0 commit comments