From ee9da32b0526810affb5649ee831317c453e00e3 Mon Sep 17 00:00:00 2001 From: Andrew Straw Date: Mon, 30 Jan 2012 07:19:33 +0100 Subject: [PATCH] use full URL when using alternate URL prefix --- IPython/frontend/html/notebook/notebookapp.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index 4adf60eea..ee39dbeed 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -410,13 +410,14 @@ class NotebookApp(BaseIPythonApplication): ip = self.ip if self.ip else '[all ip addresses on your system]' proto = 'https' if self.certfile else 'http' info = self.log.info - info("The IPython Notebook is running at: %s://%s:%i" % - (proto, ip, self.port) ) + info("The IPython Notebook is running at: %s://%s:%i%s" % + (proto, ip, self.port,self.base_project_url) ) info("Use Control-C to stop this server and shut down all kernels.") if self.open_browser: ip = self.ip or '127.0.0.1' - b = lambda : webbrowser.open("%s://%s:%i" % (proto, ip, self.port), + b = lambda : webbrowser.open("%s://%s:%i%s" % (proto, ip, self.port, + self.base_project_url), new=2) threading.Thread(target=b).start() try: