File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,12 @@ class method. This method can be set as a entry_point in
144
144
# side-by-side when launched directly.
145
145
load_other_extensions = True
146
146
147
- # Pass se
148
- server_config = {}
147
+ # A useful class property that subclasses can override to
148
+ # configure the underlying Jupyter Server when this extension
149
+ # is launched directly (using its `launch_instance` method).
150
+ serverapp_config = {
151
+ "open_browser" : True
152
+ }
149
153
150
154
# The extension name used to name the jupyter config
151
155
# file, jupyter_{name}_config.
@@ -296,11 +300,10 @@ def _jupyter_server_config(cls):
296
300
base_config = {
297
301
"ServerApp" : {
298
302
"jpserver_extensions" : {cls .get_extension_package (): True },
299
- "open_browser" : True ,
300
303
"default_url" : cls .extension_url
301
304
}
302
305
}
303
- base_config ["ServerApp" ].update (cls .server_config )
306
+ base_config ["ServerApp" ].update (cls .serverapp_config )
304
307
return base_config
305
308
306
309
def _link_jupyter_server_extension (self , serverapp ):
You can’t perform that action at this time.
0 commit comments