Permalink
Browse files

leave doc_timeout to the default value from server_conf.py

  • Loading branch information...
1 parent 2f3aaa9 commit 6b57896e3f3d14958bb3030c3b522c90bb354242 @ppurka ppurka committed Apr 2, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 sagenb/notebook/run_notebook.py
@@ -454,7 +454,7 @@ def notebook_run(self,
timeout = 0, # timeout for normal worksheets. This is the
# same as idle_timeout in server_conf.py
- doc_timeout = 120, # timeout for documentation worksheets
+ doc_timeout = None, # timeout for documentation worksheets
upload = None,
automatic_login = True,
@@ -537,7 +537,8 @@ def notebook_run(self,
print "The notebook files are stored in:", nb._dir
nb.conf()['idle_timeout'] = int(timeout)
- nb.conf()['doc_timeout'] = int(doc_timeout)
+ if doc_timeout is not None:
+ nb.conf()['doc_timeout'] = int(doc_timeout)
if openid is not None:
nb.conf()['openid'] = openid

0 comments on commit 6b57896

Please sign in to comment.