Skip to content

Commit

Permalink
allow jupyter to work behind proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jul 17, 2023
1 parent c6dc71e commit 73739e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/jupyterlab.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Function StartServer
printSectionLine "${SERVICE_NAME} - SERVICE_PATH=${SERVICE_PATH}"
printSectionLine "${SERVICE_NAME} - SERVICE_PORT=${SERVICE_PORT}"
try {
& Invoke-Expression -Command "${PYTHON} -m jupyter lab --ServerApp.root_dir=${SERVICE_NOTEBOOKS_PATH} --no-browser --ServerApp.port=${SERVICE_PORT} --ServerApp.port_retries=0 --ServerApp.disable_check_xsrf=True"
& Invoke-Expression -Command "${PYTHON} -m jupyter lab --ServerApp.allow_remote_access=True --ServerApp.allow_origin=* --ServerApp.root_dir=${SERVICE_DATA_PATH} --no-browser --ServerApp.port=${SERVICE_PORT} --ServerApp.port_retries=0 --ServerApp.token='' --ServerApp.disable_check_xsrf=True --ServerApp.terminals_enabled=False"
# & Invoke-Expression -Command "ijsinstall --spec-path=full --working-dir=${SERVICE_JSWORK_PATH}"
# & Invoke-Expression -Command "jupyter lab --show-config"
# & Invoke-Expression -Command "jupyter kernelspec list"
Expand Down
6 changes: 4 additions & 2 deletions services/jupyterlab/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"win32": [
"-m jupyter lab build",
"; npm install -g ijavascript",
"; ijsinstall --spec-path=full --working-dir=${JUPYTERLAB_JSWORK_PATH}"
"; ijsinstall --spec-path=full --working-dir=${JUPYTERLAB_JSWORK_PATH}",
"-m jupyter kernelspec list"
],
"darwin": [
"-m jupyter lab build"
Expand All @@ -32,6 +33,7 @@
"${PYTHON_SCRIPTS_PATH}",
"${NODE_HOME}"
],
"JUPYTER_DATA_DIR": "${SERVICE_PATH}",
"JUPYTERLAB_JSWORK_PATH": "${SERVICE_PATH}/jswork",
"JUPYTERLAB_DIR": "${SERVICE_PATH}/data",
"JUPYTERLAB_NOTEBOOKS_DIR": "${SERVICE_PATH}/notebooks",
Expand All @@ -44,7 +46,7 @@
"JUPYTERLAB_PORT": "${SERVICE_PORT}"
},
"commandline": {
"default": " -m jupyter lab --ServerApp.root_dir=${SERVICE_DATA_PATH} --no-browser --ServerApp.port=${SERVICE_PORT} --ServerApp.port_retries=0 --ServerApp.token='' --ServerApp.disable_check_xsrf=True"
"default": " -m jupyter lab --ServerApp.allow_remote_access=True --ServerApp.allow_origin=* --ServerApp.root_dir=${SERVICE_DATA_PATH} --no-browser --ServerApp.port=${SERVICE_PORT} --ServerApp.port_retries=0 --ServerApp.token='' --ServerApp.disable_check_xsrf=True --ServerApp.terminals_enabled=False"
},
"serviceport": 8888,
"healthcheck": {
Expand Down

0 comments on commit 73739e0

Please sign in to comment.