-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Incompatible FigureWidget with ipywidgets 8.0.0rc0 #3686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The same error occurs for plotly
Together with jupyterlab, it is also not so clear how to resolve it. Installing
Update: Solved at least jupyterlab + prev. ipywidgets versions by installing package jupyterlab-widgets in version 1.1.1:
|
This is come into production and is causing a problem with a live environment, but I have found this reference as a fix: |
Hello, i have a general question to the bug report process, (cause i am quite new to this). |
This is an issue, yes, No one is currently actively working on changing |
Summary: Context: Interactive figures on the website have not been displaying properly:  This happens because the newest version of Plotly is not compatible with the newest version if its dependency ipywidgets, which is needed for interactive figures: plotly/plotly.py#3686 So we can fix this by specifying the ipywidgets version. Pull Request resolved: #1273 Test Plan: - Reproduced the error with latest Ax + latest boTorch on my Mac - Then it went away when I re-built with the specified ipywidgets version Reviewed By: bernardbeckerman Differential Revision: D41438932 Pulled By: esantorella fbshipit-source-id: f6b2f430da1483a4613dac8f81a76dbc6f6dd4cb
The same issue here,
this code above only displays the dropdown widget (dropdownwdgt), but doesn't show the figwdget (figure widget). My versions: jupyter-lab -> 3.5.0 how to fix or workaround this? |
same issue |
For me installing the following versions worked:
|
great... @cganuza , thank you ... after downgrade ipywidgets to 7.x from 8.x, it works for me too.
|
I must add:
|
Is this issue a duplicate of #3930? They seem very similar to me. |
@pmarcellino, #3930 is a PR targeting this issue, so not a duplicate. |
@nicolaskruchten, based on the release notes, I believe this is closed by the latest release V5.12.0. |
Yes, thanks for the reminder :) |
In case you are using nb_conda_kernels, you also need plotly>=5.12.0 in the environment where you start the kernel. |
Summary: #1273 set a maximum ipywidgets version since the then-most-recent version of Plotly wasn't compatible with the most current version. This is no longer necessary as of Plotly >=5.12.0. Pull Request resolved: #1455 Test Plan: Built the environment locally and ran code in a notebook that would have produced an error with incompatible plotly and ipywidgets versions, following [this issue](plotly/plotly.py#3686): ```python import plotly.graph_objects as go go.FigureWidget(go.Scatter(x=[1, 2, 3], y=[1, 4, 9])) ``` Reviewed By: mpolson64 Differential Revision: D43580470 Pulled By: esantorella fbshipit-source-id: 644e8961a71c13758077ba590c07729a3c860010
Plotly's
FigureWidget
does not appear to be compatible with the upcoming ipywidgets release.python -m venv .venv . ./.venv/bin/activate pip install plotly jupyterlab ipywidgets==8.0.0rc0 jupyer-lab
If using directly the FigureWidget as the output of the cell, the figure is shown by with the following error:
On the other hand, if the FigureWidget is used within other widgets, the figure does not appear at all (though there isn't any error message):
This was generated using Plotly
5.7.0
and ipywidgets8.0.0rc0
all within JupyterLab3.3.4
.The text was updated successfully, but these errors were encountered: