This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
containers/codespaces-linux/.devcontainer/library-scripts Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 14
14
VERSION=${1:- " latest" }
15
15
USERNAME=${2:- " automatic" }
16
16
PYTHON=${3:- " python" }
17
- ALLOW_ORIGIN =${4:- " " }
17
+ ALLOW_ALL_ORIGINS =${4:- " " }
18
18
19
19
# If in automatic mode, determine if a user already exists, if not use vscode
20
20
if [ " ${USERNAME} " = " auto" ] || [ " ${USERNAME} " = " automatic" ]; then
70
70
sudoUserIf ${PYTHON} -m pip install jupyterlab==" ${VERSION} " --no-cache-dir
71
71
fi
72
72
73
- if [ " ${ALLOW_ORIGIN } " = ' true' ]; then
73
+ if [ " ${ALLOW_ALL_ORIGINS } " = ' true' ]; then
74
74
addToJupyterConfig " c.ServerApp.allow_origin = '*'"
75
+ addToJupyterConfig " c.NotebookApp.allow_origin = '*'"
75
76
fi
Original file line number Diff line number Diff line change 14
14
VERSION=${1:- " latest" }
15
15
USERNAME=${2:- " automatic" }
16
16
PYTHON=${3:- " python" }
17
- ALLOW_ORIGIN =${4:- " " }
17
+ ALLOW_ALL_ORIGINS =${4:- " " }
18
18
19
19
# If in automatic mode, determine if a user already exists, if not use vscode
20
20
if [ " ${USERNAME} " = " auto" ] || [ " ${USERNAME} " = " automatic" ]; then
70
70
sudoUserIf ${PYTHON} -m pip install jupyterlab==" ${VERSION} " --no-cache-dir
71
71
fi
72
72
73
- if [ " ${ALLOW_ORIGIN } " = ' true' ]; then
73
+ if [ " ${ALLOW_ALL_ORIGINS } " = ' true' ]; then
74
74
addToJupyterConfig " c.ServerApp.allow_origin = '*'"
75
+ addToJupyterConfig " c.NotebookApp.allow_origin = '*'"
75
76
fi
You can’t perform that action at this time.
0 commit comments