Permalink
Browse files

be more explicit about how --browser value is used

  • Loading branch information...
1 parent 373129a commit 2a436aee039c5cf851d045062142371876685ad3 @ivanov committed Feb 14, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 IPython/frontend/html/notebook/notebookapp.py
@@ -291,11 +291,11 @@ def _ip_changed(self, name, old, new):
""")
browser = Unicode(u'', config=True,
- help="""Specify which browser to use when opening the
- notebook. If not specified, the default browser will be
- determined by the `webbrowser` standard library module,
- which allows setting of the BROWSER environment variable
- to override it.
+ help="""Specify what command to use to invoke a web
+ browser when opening the notebook. If not specified, the
+ default browser will be determined by the `webbrowser`
+ standard library module, which allows setting of the
+ BROWSER environment variable to override it.
""")
read_only = Bool(False, config=True,
@@ -441,7 +441,7 @@ def start(self):
if self.open_browser:
ip = self.ip or '127.0.0.1'
- if len(self.browser) == 0:
+ if self.browser:
browser = webbrowser.get()
else:
browser = webbrowser.get(self.browser)

0 comments on commit 2a436ae

Please sign in to comment.