Disabled xsrf check for the jupyter notebook
@@ -7,10 +7,13 @@ export endpoint_number=0
export notebook_dir=${NOTEBOOK_SERVE_DIR:-"/home/${OWNER}"}
export base_url="/$pipeline_name-$jupyter_port-$endpoint_number"
+# "disable_check_xsrf" option was added, as "'_xsrf' argument missing from post"
+# might be thrown from time to time, see https://stackoverflow.com/questions/55014094/jupyter-notebook-not-saving-xsrf-argument-missing-from-post
jupyter notebook --ip '0.0.0.0' \
--port $jupyter_port \
--no-browser \
--NotebookApp.token='' \
--NotebookApp.notebook_dir=$notebook_dir \
--NotebookApp.base_url=$base_url \
+ --NotebookApp.disable_check_xsrf=True \
--allow-root
