Skip to content

Effect on JupyterLab bundle size #1873

Closed
@vidartf

Description

@vidartf

Hi!

I've been looking at the effect of the plotly jupyterlab extensions on the final bundle size, and I've made these observations:

  • The plotly.js part for a prod build is roughly 17 MB.
  • Both plotly.js/dist/plotly.js and plotly.js/dist/plotly.min.js gets included in the final lab bundle (one from plotlywidget and one from jupyterlab-plotly). Both end up taking roughly equal amount of space (6-7 MB) when the lab build is run in prod mode.
  • Also some parts of the plotly.js/src dir gets included (from plotlywidget).

Would it be possible to consolidate the imports in the jupyterlab packages such that only one of the dists gets imported from (and if possible also the src import)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions