|
24 | 24 |
|
25 | 25 |
|
26 | 26 | LauncherEntry = namedtuple( |
27 | | - "LauncherEntry", ["enabled", "icon_path", "title", "path_info"] |
| 27 | + "LauncherEntry", ["enabled", "icon_path", "title", "path_info", "category"] |
28 | 28 | ) |
29 | 29 | ServerProcess = namedtuple( |
30 | 30 | "ServerProcess", |
@@ -148,6 +148,7 @@ def make_server_process(name, server_process_config, serverproxy_config): |
148 | 148 | icon_path=le.get("icon_path"), |
149 | 149 | title=le.get("title", name), |
150 | 150 | path_info=le.get("path_info", name + "/"), |
| 151 | + category=le.get("category", "Notebook"), |
151 | 152 | ), |
152 | 153 | new_browser_tab=server_process_config.get("new_browser_tab", True), |
153 | 154 | request_headers_override=server_process_config.get( |
@@ -230,6 +231,10 @@ class ServerProxy(Configurable): |
230 | 231 | The trailing path that is appended to the user's server URL to access the proxied server. |
231 | 232 | By default it is the name of the server followed by a trailing slash. |
232 | 233 |
|
| 234 | + category |
| 235 | + The category for the launcher item. Currently only used by the JupyterLab launcher. |
| 236 | + By default it is "Notebook". |
| 237 | +
|
233 | 238 | new_browser_tab |
234 | 239 | Set to True (default) to make the proxied server interface opened as a new browser tab. Set to False |
235 | 240 | to have it open a new JupyterLab tab. This has no effect in classic notebook. |
|
0 commit comments