Skip to content

Commit 48debc2

Browse files
committed
update: jupyterlab configuration
1 parent 8b2cd9f commit 48debc2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

python-pytorch/service-defs/jupyterlab.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"c.NotebookApp.ip = \"0.0.0.0\"\n",
99
"c.NotebookApp.port = {ports[0]}\n",
1010
"c.NotebookApp.token = \"\"\n",
11-
"c.FileContentsManager.delete_to_trash = False\n"
11+
"c.FileContentsManager.delete_to_trash = False\n",
12+
"c.NotebookApp.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n",
13+
"c.JupyterHub.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n"
1214
]
1315
},
1416
"ref": "jupyter_cfg"

python-tensorflow/service-defs/jupyterlab.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"c.NotebookApp.ip = \"0.0.0.0\"\n",
99
"c.NotebookApp.port = {ports[0]}\n",
1010
"c.NotebookApp.token = \"\"\n",
11-
"c.FileContentsManager.delete_to_trash = False\n"
11+
"c.FileContentsManager.delete_to_trash = False\n",
12+
"c.NotebookApp.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n",
13+
"c.JupyterHub.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n"
1214
]
1315
},
1416
"ref": "jupyter_cfg"

python/service-defs/jupyterlab.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"c.NotebookApp.ip = \"0.0.0.0\"\n",
99
"c.NotebookApp.port = {ports[0]}\n",
1010
"c.NotebookApp.token = \"\"\n",
11-
"c.FileContentsManager.delete_to_trash = False\n"
11+
"c.FileContentsManager.delete_to_trash = False\n",
12+
"c.NotebookApp.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n",
13+
"c.JupyterHub.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n"
1214
]
1315
},
1416
"ref": "jupyter_cfg"

0 commit comments

Comments
 (0)