From 12688f2a8df5de813ea4e651d924794c266368bc Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Thu, 26 Jan 2017 11:58:41 -0800 Subject: [PATCH] show message only on dev --- notebook/notebookapp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 3e5801418..acf15d731 100755 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -6,6 +6,7 @@ from __future__ import absolute_import, print_function +import notebook import binascii import datetime import errno @@ -1345,7 +1346,11 @@ class NotebookApp(JupyterApp): for line in self.notebook_info().split("\n"): info(line) info("Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).") - info("Welcome to Project Jupyter! Explore the various tools available and their corresponding documentation. If you are interested in contributing to the platform, please visit the community resources section at http://jupyter.org/community.html.") + if 'dev' in notebook.__version__: + info("Welcome to Project Jupyter! Explore the various tools available" + " and their corresponding documentation. If you are interested" + " in contributing to the platform, please visit the community" + "resources section at http://jupyter.org/community.html.") self.write_server_info_file()