Skip to content

Commit e0fdaf4

Browse files
committed
add no-browser flag to ExtensionApp
1 parent eb7e5c9 commit e0fdaf4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jupyter_server/extension/application.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ def _preparse_for_stopping_flags(Application, argv):
8181
app.exit(0)
8282

8383

84+
flags['no-browser']=(
85+
{'ExtensionApp' : {'open_browser' : True}},
86+
_("Prevent the opening of the default url in the browser.")
87+
)
88+
89+
8490
class ExtensionApp(JupyterApp):
8591
"""Base class for configurable Jupyter Server Extension Applications.
8692

0 commit comments

Comments
 (0)