mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
be more explicit about how --browser value is used
This commit is contained in:
parent
407c8ee6d7
commit
6ee29b4c72
@ -291,11 +291,11 @@ class NotebookApp(BaseIPythonApplication):
|
||||
""")
|
||||
|
||||
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 @@ class NotebookApp(BaseIPythonApplication):
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user