From 20d96ef5a282ddfc875014c1e122511fb9fd0e34 2012-02-20 15:00:50 From: MinRK Date: 2012-02-20 15:00:50 Subject: [PATCH] fix inverted self.browser logic --- diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index 9ea35ac..02fbce6 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -442,9 +442,9 @@ class NotebookApp(BaseIPythonApplication): if self.open_browser: ip = self.ip or '127.0.0.1' if self.browser: - browser = webbrowser.get() - else: browser = webbrowser.get(self.browser) + else: + browser = webbrowser.get() b = lambda : browser.open("%s://%s:%i%s" % (proto, ip, self.port, self.base_project_url), new=2)