Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
leave doc_timeout to the default value from server_conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ppurka committed Apr 2, 2013
1 parent 2f3aaa9 commit 6b57896
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sagenb/notebook/run_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b57896

Please sign in to comment.