From 6fbb39193a901f9d9c8908f17b8be27d03e78157 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Mon, 6 Feb 2017 13:47:00 +0000 Subject: [PATCH] Bump up tornado buffer sizes to allow saving large notebooks Sort of addresses gh-650 --- notebook/notebookapp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index e32a2f4e6..498405a6d 100755 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -224,6 +224,11 @@ class NotebookWebApplication(web.Application): iopub_msg_rate_limit=jupyter_app.iopub_msg_rate_limit, iopub_data_rate_limit=jupyter_app.iopub_data_rate_limit, rate_limit_window=jupyter_app.rate_limit_window, + + # maximum request sizes - support saving larger notebooks + # tornado defaults are 100 MiB, we increase it to 0.5 GiB + max_body_size = 512 * 1024 * 1024, + max_buffer_size = 512 * 1024 * 1024, # authentication cookie_secret=jupyter_app.cookie_secret,