Skip to content

Commit

Permalink
correct place to change config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Dec 6, 2023
1 parent 6b60d8e commit 5e2a526
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion private_jupyter_notebook_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@
c.NotebookApp.open_browser = False
# Set shell to bash as AnalysisBase assumes it
# force login shell to pickup ~/.bash_profile
c.NotebookApp.terminado_settings = { "shell_command": ["/bin/bash", "-l"] }
c.NotebookApp.terminado_settings = {"shell_command": ["/bin/bash", "-l"]}


def host_allowlist(handler, host):
handler.log.info("Request to proxy to host " + host)
return host.startswith("192.170") or host.startswith("2605:9a00:10:200a") or host.startswith("dask-")


# for dask dashboards to be visible
c.ServerProxy.host_allowlist = host_allowlist

0 comments on commit 5e2a526

Please sign in to comment.