File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tutorial/root/etc/s6-overlay/s6-rc.d/init-jupyterlab Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ rm -f ${HOME}/.jupyter/jupyter_lab_config.py
66s6-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
1016if [ -n "${JUPYTER_PASSWORD_HASH}" ]; then
1117 echo "c.PasswordIdentityProvider.hashed_password = u'${JUPYTER_PASSWORD_HASH}'" >> ${HOME}/.jupyter/jupyter_lab_config.py
You can’t perform that action at this time.
0 commit comments