Skip to content

Commit 9fef35c

Browse files
Merge pull request #142 from plazadeloslagartos/serverapp-xsrf-fix
update jupyter server options for ServerApp accordint to migration guide
2 parents 8e6bb7e + 23a824c commit 9fef35c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lean/commands/research.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def research(project: Path,
134134
# Allow notebooks to be embedded in iframes
135135
run_options["commands"].append("mkdir -p ~/.jupyter")
136136
run_options["commands"].append(
137-
'echo "c.NotebookApp.disable_check_xsrf = True\nc.NotebookApp.tornado_settings = {\'headers\': {\'Content-Security-Policy\': \'frame-ancestors self *\'}}" > ~/.jupyter/jupyter_notebook_config.py')
137+
'echo "c.ServerApp.disable_check_xsrf = True\nc.ServerApp.tornado_settings = {\'headers\': {\'Content-Security-Policy\': \'frame-ancestors self *\'}}" > ~/.jupyter/jupyter_server_config.py')
138138

139139
# Hide headers in notebooks
140140
run_options["commands"].append("mkdir -p ~/.ipython/profile_default/static/custom")

0 commit comments

Comments
 (0)