From 19d23e2de794c00d5a47bce71c963de87ba44151 Mon Sep 17 00:00:00 2001 From: "Steve (Gadget) Barnes" Date: Fri, 19 May 2017 17:25:22 +0100 Subject: [PATCH] Issue #2502: Add line break after The Jupyter Notebook is running at: (#2505) * Issue #2502: Add line break after The Jupyter Notebook is running at: * Revert "Issue #2502: Add line break after The Jupyter Notebook is running at:" This reverts commit 3aa65e712006f2726ea57476dd8923753a13e4ef. * Issue #2502: Reverted previous changes and redone without strip trailing spaces --- docs/source/security.rst | 3 ++- notebook/notebookapp.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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."""