Skip to content

Commit

Permalink
Merge pull request #142 from plazadeloslagartos/serverapp-xsrf-fix
Browse files Browse the repository at this point in the history
update jupyter server options for ServerApp accordint to migration guide
  • Loading branch information
Martin-Molinero authored Aug 30, 2022
2 parents 8e6bb7e + 23a824c commit 9fef35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lean/commands/research.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def research(project: Path,
# Allow notebooks to be embedded in iframes
run_options["commands"].append("mkdir -p ~/.jupyter")
run_options["commands"].append(
'echo "c.NotebookApp.disable_check_xsrf = True\nc.NotebookApp.tornado_settings = {\'headers\': {\'Content-Security-Policy\': \'frame-ancestors self *\'}}" > ~/.jupyter/jupyter_notebook_config.py')
'echo "c.ServerApp.disable_check_xsrf = True\nc.ServerApp.tornado_settings = {\'headers\': {\'Content-Security-Policy\': \'frame-ancestors self *\'}}" > ~/.jupyter/jupyter_server_config.py')

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

0 comments on commit 9fef35c

Please sign in to comment.