File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,15 @@ source /etc/profile.d/lmod.sh
77source /bin/find_host_port
88source /bin/save_passwd_as_secret
99source /bin/create_salt_and_sha1
10+ export JUPYTER_PORT=8080
1011< %- else -%>
1112[[ $( type -t module) == " function" ]] && export -f module
1213
1314# Find available port to run server on
1415port=$( find_port ${host} )
16+ JUPYTER_PORT=" ${port} "
17+ HOST_CFG=" ${host} "
18+ PORT_CFG=" ${port} "
1519
1620# Generate SHA1 encrypted password (requires OpenSSL installed)
1721SALT=" $( create_passwd 16) "
@@ -68,7 +72,7 @@ umask 077
6872cat > " ${CONFIG_FILE} " << EOL
6973c.KernelSpecManager.ensure_native_kernel = False
7074c.NotebookApp.ip = '*'
71- c.NotebookApp.port = 8080
75+ c.NotebookApp.port = ${JUPYTER_PORT}
7276c.NotebookApp.base_url = '/node/${HOST_CFG} /${PORT_CFG} /'
7377c.NotebookApp.terminado_settings = {'shell_command': ['/bin/bash', '--login', '-i']}
7478c.NotebookApp.port_retries = 0
You can’t perform that action at this time.
0 commit comments