Skip to content

Commit 2600047

Browse files
authored
[3.2.x] Expose window.jupyterapp (jupyterlab#11417)
* Expose `window.jupyterapp` * Update help message
1 parent c22bdf9 commit 2600047

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dev_mode/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export async function main() {
213213

214214
if (exposeAppInBrowser || devMode) {
215215
window.jupyterlab = lab;
216+
window.jupyterapp = lab;
216217
}
217218

218219
// Handle a browser test.

jupyterlab/labapp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ class LabApp(NBClassicConfigShimMixin, LabServerApp):
538538
)
539539
flags['expose-app-in-browser'] = (
540540
{'LabApp': {'expose_app_in_browser': True}},
541-
"Expose the global app instance to browser via window.jupyterlab."
541+
"""Expose the global app instance to browser via window.jupyterapp.
542+
It is also available via the deprecated window.jupyterlab name."""
542543
)
543544
flags['extensions-in-dev-mode'] = (
544545
{'LabApp': {'extensions_in_dev_mode': True}},

0 commit comments

Comments
 (0)