From 641fdc77a7df2f99326dee01ac7e518e13cfb0e0 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Tue, 24 Sep 2013 09:49:29 -0700 Subject: [PATCH] include the # of active kernels in server info --- IPython/html/notebookapp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index d6ec35829..e523cf4aa 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -711,8 +711,9 @@ class NotebookApp(BaseIPythonApplication): def notebook_info(self): "Return the current working directory and the server url information" - mgr_info = self.notebook_manager.info_string() + "\n" - return mgr_info +"The IPython Notebook is running at: %s" % self._url + info = self.notebook_manager.info_string() + "\n" + info += "%d active kernels \n" % len(self.kernel_manager._kernels) + return info + "The IPython Notebook is running at: %s" % self._url def start(self): """ Start the IPython Notebook server app, after initialization