Skip to content

Lazy loading of jupyter labextensions #15945

Answered by krassowski
Raghav-254 asked this question in Q&A
Discussion options

You must be logged in to vote

Specifically, I’m curious whether the JavaScript files associated with Jupyter labextensions are loaded only when the extension is in use, or if all the JS files associated with the labextensions are re-loaded on a jupyterlab page reload.

  1. In JupyterLab 4.0 things were improved with respect to not pulling static assets for disabled extensions
  2. Extension can use async imports to delay fetching things
  3. Installing via jupyter labextension install is not recommended for users (in fact derpecated) and indeed will result in different bundling and serving of assets (in way which depends on what specific Node dependencies, importantly webpack, you have installed locally).

JupyterLab version 3.6.3

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Raghav-254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants