Skip to content

Commit

Permalink
Use Jupyter Server Proxy for TensorBoard
Browse files Browse the repository at this point in the history
  • Loading branch information
benz0li committed Jul 20, 2024
1 parent 5cdd705 commit 58701c8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ their copyrights and license statements are listed below.

--------------------------------------------------------------------------------
base/conf/jupyter/etc/jupyter/jupyter_server_config.py
base/scripts/usr/local/bin/before-notebook.d/71-tensorboard.sh
base/scripts/usr/local/bin/run-hooks.sh
base/scripts/usr/local/bin/start-notebook.sh
base/scripts/usr/local/bin/start-singleuser.sh
Expand Down
2 changes: 2 additions & 0 deletions NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ The following startup hooks are put in place:
* [/usr/local/bin/before-notebook.d/70-qgis.sh](qgisprocess/scripts/usr/local/bin/before-notebook.d/70-qgis.sh) to
* put inital QGIS settings in place.
* copy plugin 'Processing Saga NextGen Provider'.
* [/usr/local/bin/before-notebook.d/71-tensorboard.sh](base/scripts/usr/local/bin/before-notebook.d/71-tensorboard.sh)
to use Jupyter Server Proxy for TensorBoard.
* [/usr/local/bin/before-notebook.d/90-limits.sh](base/scripts/usr/local/bin/before-notebook.d/90-limits.sh)
* *soft* limit the *address space* based on the amount of *physical* and
*virtual memory* of the host. (default: command `ulimit -v`)
Expand Down
10 changes: 10 additions & 0 deletions base/scripts/usr/local/bin/before-notebook.d/71-tensorboard.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

set -e

# Initialize the TENSORBOARD_PROXY_URL with the appropriate path
# to use jupyter-server-proxy.

export TENSORBOARD_PROXY_URL="${JUPYTERHUB_SERVICE_PREFIX:-/}proxy/%PORT%/"

0 comments on commit 58701c8

Please sign in to comment.