Skip to content

Commit

Permalink
call it last_activity_times
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Mar 16, 2018
1 parent f0a96b5 commit bd23c05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions notebook/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ def init_settings(self, jupyter_app, kernel_manager, contents_manager,
# Jupyter stuff
started=now,
# place for extensions to register activity
activity_sources={},
# so that they can prevent idle-shutdown
last_activity_times={},
jinja_template_vars=jupyter_app.jinja_template_vars,
nbextensions_path=jupyter_app.nbextensions_path,
websocket_url=jupyter_app.websocket_url,
Expand Down Expand Up @@ -362,7 +363,7 @@ def last_activity(self):
sources.append(self.settings['terminal_last_activity'])
except KeyError:
pass
sources.extend(self.settings['activity_sources'].values())
sources.extend(self.settings['last_activity_times'].values())
return max(sources)


Expand Down Expand Up @@ -1274,7 +1275,7 @@ def init_webapp(self):
self.session_manager, self.kernel_spec_manager,
self.config_manager, self.extra_services,
self.log, self.base_url, self.default_url, self.tornado_settings,
self.jinja_environment_options
self.jinja_environment_options,
)
ssl_options = self.ssl_options
if self.certfile:
Expand Down

0 comments on commit bd23c05

Please sign in to comment.