include the # of active kernels in server info

This commit is contained in:
Paul Ivanov 2013-09-24 09:49:29 -07:00
parent 031811225e
commit 641fdc77a7

View File

@ -711,8 +711,9 @@ class NotebookApp(BaseIPythonApplication):
def notebook_info(self): def notebook_info(self):
"Return the current working directory and the server url information" "Return the current working directory and the server url information"
mgr_info = self.notebook_manager.info_string() + "\n" info = self.notebook_manager.info_string() + "\n"
return mgr_info +"The IPython Notebook is running at: %s" % self._url info += "%d active kernels \n" % len(self.kernel_manager._kernels)
return info + "The IPython Notebook is running at: %s" % self._url
def start(self): def start(self):
""" Start the IPython Notebook server app, after initialization """ Start the IPython Notebook server app, after initialization