Skip to content

Commit 94a4529

Browse files
committed
fix: allow jupyter remote access
1 parent bd68f96 commit 94a4529

File tree

1 file changed

+6
-0
lines changed
  • tutorial/root/etc/s6-overlay/s6-rc.d/init-jupyterlab

1 file changed

+6
-0
lines changed

tutorial/root/etc/s6-overlay/s6-rc.d/init-jupyterlab/run

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ rm -f ${HOME}/.jupyter/jupyter_lab_config.py
66
s6-setuidgid abc \
77
jupyter-lab --generate-config
88

9+
# allow remote access
10+
echo "c.ServerApp.ip = '0.0.0.0'" >> ${HOME}/.jupyter/jupyter_lab_config.py
11+
echo "c.ServerApp.open_browser = False" >> ${HOME}/.jupyter/jupyter_lab_config.py
12+
echo "c.ServerApp.port = 8888" >> ${HOME}/.jupyter/jupyter_lab_config.py
13+
echo "c.ServerApp.allow_remote_access = True" >> ${HOME}/.jupyter/jupyter_lab_config.py
14+
915
# set password if provided
1016
if [ -n "${JUPYTER_PASSWORD_HASH}" ]; then
1117
echo "c.PasswordIdentityProvider.hashed_password = u'${JUPYTER_PASSWORD_HASH}'" >> ${HOME}/.jupyter/jupyter_lab_config.py

0 commit comments

Comments
 (0)