mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
fix: applied fernando's if simplification fix
This commit is contained in:
parent
1ae18b5be7
commit
7d0467df1c
@ -263,9 +263,7 @@ class IPythonNotebookApp(BaseIPythonApplication):
|
||||
|
||||
def start(self):
|
||||
ip = self.ip if self.ip else '[all ip addresses on your system]'
|
||||
proto = 'http'
|
||||
if self.certfile:
|
||||
proto = 'https'
|
||||
proto = 'https' if self.certfile else 'http'
|
||||
self.log.info("The IPython Notebook is running at: %s://%s:%i" % (proto,
|
||||
ip,
|
||||
self.port))
|
||||
|
Loading…
Reference in New Issue
Block a user