doc improvements for running notebook via secure protocol #730

merged 3 commits into from Aug 25, 2011

3 participants


No description provided.

@fperez fperez commented on an outdated diff Aug 25, 2011
@@ -263,7 +263,12 @@ class IPythonNotebookApp(BaseIPythonApplication):
def start(self):
ip = self.ip if self.ip else '[all ip addresses on your system]'
-"The IPython Notebook is running at: http://%s:%i" % (ip, self.port))
+ proto = 'http'
+ if self.certfile:
+ proto = 'https'
+"The IPython Notebook is running at: %s://%s:%i" % (proto,
fperez Aug 25, 2011 IPython member

Since we're on 2.6, this can be more compactly written in the new form:

proto = 'https' if self.certfile else 'http'
IPython member

This is great, thanks! Once this minor fix is made, I'll go ahead and merge.

@ellisonbg ellisonbg merged commit e9402c0 into ipython:master Aug 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment