plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
20.86k stars 2.01k forks source link

[BUG] Dash 2.11 triggers build recommended for @plotly/dash-jupyterlab #2580

Open melanopsis opened 1 year ago

melanopsis commented 1 year ago

Greetings,

After upgrading to Dash v2.11, I see a build recommended pop-up window for @plotly/dash-jupyterlab.

build_recommended

jupyter-labextension list shows

Other labextensions (built into JupyterLab)
   app dir: /usr/local/share/jupyter/lab
        @plotly/dash-jupyterlab v0.4.3 enabled OK

Build recommended, please run `jupyter lab build`:
    @plotly/dash-jupyterlab needs to be included in build

Here are the installed dash packages

dash                         2.11.0
dash-bootstrap-components    1.4.1
dash-core-components         2.0.0
dash-daq                     0.5.0
dash-extensions              1.0.1
dash-html-components         2.0.0
dash-table                   5.0.0

Observed both with JupyterLab v3.6.4 and v3.6.5

Secondary build shouldn't be required

likewei92 commented 5 months ago

I'm seeing this too, is it possible to switch to using a prebuilt extension?

Coding-with-Adam commented 5 months ago

hi @likewei92 Are you seeing this in later versions of Dash as well? version 2.12 or 2.14?

likewei92 commented 5 months ago

yes. Actually it only happens after 2.11. But this should not be a surprise? It's mentioned in the docs here: https://dash.plotly.com/dash-in-jupyter#display-modes

"To use jupyterlab mode, you'll also need to build the @plotly/dash-jupyterlab extension. When you launch a new JupyterLab notebook after installing Dash, you'll be prompted to build @plotly/dash-jupyterlab."