diff --git a/docs/source/security.rst b/docs/source/security.rst index 4c57ef0f5..f90f9d6da 100644 --- a/docs/source/security.rst +++ b/docs/source/security.rst @@ -31,7 +31,8 @@ When you start a notebook server with token authentication enabled (default), a token is generated to use for authentication. This token is logged to the terminal, so that you can copy/paste the URL into your browser:: - [I 11:59:16.597 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=c8de56fa4deed24899803e93c227592aef6538f93025fe01 + [I 11:59:16.597 NotebookApp] The Jupyter Notebook is running at: + http://localhost:8888/?token=c8de56fa4deed24899803e93c227592aef6538f93025fe01 If the notebook server is going to open your browser automatically diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 3985316f0..59e589aed 100755 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -1353,7 +1353,8 @@ class NotebookApp(JupyterApp): "Return the current working directory and the server url information" info = self.contents_manager.info_string() + "\n" info += "%d active kernels \n" % len(self.kernel_manager._kernels) - return info + "The Jupyter Notebook is running at: %s" % self.display_url + # Format the info so that the URL fits on a single line in 80 char display + return info + "The Jupyter Notebook is running at:\n\r%s" % self.display_url def server_info(self): """Return a JSONable dict of information about this server."""