Skip to content

Commit bd23c05

Browse files
committed
call it last_activity_times
1 parent f0a96b5 commit bd23c05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

notebook/notebookapp.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ def init_settings(self, jupyter_app, kernel_manager, contents_manager,
265265
# Jupyter stuff
266266
started=now,
267267
# place for extensions to register activity
268-
activity_sources={},
268+
# so that they can prevent idle-shutdown
269+
last_activity_times={},
269270
jinja_template_vars=jupyter_app.jinja_template_vars,
270271
nbextensions_path=jupyter_app.nbextensions_path,
271272
websocket_url=jupyter_app.websocket_url,
@@ -362,7 +363,7 @@ def last_activity(self):
362363
sources.append(self.settings['terminal_last_activity'])
363364
except KeyError:
364365
pass
365-
sources.extend(self.settings['activity_sources'].values())
366+
sources.extend(self.settings['last_activity_times'].values())
366367
return max(sources)
367368

368369

@@ -1274,7 +1275,7 @@ def init_webapp(self):
12741275
self.session_manager, self.kernel_spec_manager,
12751276
self.config_manager, self.extra_services,
12761277
self.log, self.base_url, self.default_url, self.tornado_settings,
1277-
self.jinja_environment_options
1278+
self.jinja_environment_options,
12781279
)
12791280
ssl_options = self.ssl_options
12801281
if self.certfile:

0 commit comments

Comments
 (0)