Skip to content

Commit 38947bb

Browse files
committed
Add open_browser trait on ExtensionApp
1 parent 9b13028 commit 38947bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

jupyter_server/extension/application.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Unicode,
88
List,
99
Dict,
10+
Bool,
1011
default,
1112
validate
1213
)
@@ -205,6 +206,14 @@ def static_url_prefix(self):
205206
help=_("""Handlers appended to the server.""")
206207
).tag(config=True)
207208

209+
open_browser = Bool(False,
210+
help=_("""Whether to open in a browser after starting.
211+
The specific browser used is platform dependent and
212+
determined by the python standard library `webbrowser`
213+
module, unless it is overridden using the --browser
214+
(ServerApp.browser) configuration option.
215+
""")).tag(config=True)
216+
208217
def _config_file_name_default(self):
209218
"""The default config file name."""
210219
if not self.extension_name:

0 commit comments

Comments
 (0)