-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Installing plotly with ipywigets 7.5 fails to plot in jupyter lab #1659
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
Hi @samueljackson92, For ipywidgets 7.5 I think you'll need |
@jonmmease you should be able to publish a patch release on the latest stable changing the jupyterlab-manager requirement from |
Any updates on this? 7.5 is still broken... |
Hi all, yesterday we released version 4.0.0 of the |
Any chance on a patch release for 3.x with the changes @SylvainCorlay suggested? |
Hi @flixr,
|
If you are seeing this after today, are using plotly 4 and followed everything (https://plot.ly/python/getting-started/ and https://github.com/plotly/plotly.py) and it's still not working, upgrading to |
I followed the getting started in fresh conda env, but the widget is still not displayed :
|
@mazzma12 What i've noticed is that when you install in a new env, the install pulls from existing files and/or versions previously installed. |
Thanks, but I need plotly 4 and jupyterlab v1. I eventually got it working by removing the version specifications mentioned in the readme. I end up with these versions.
If it appears to be a general case perhaps it would be good to update the readme @jonmmease ? |
I can confirm that the instruction in https://plot.ly/python/getting-started/ works. However, if new version of jupyterlab is updated, plotly may break again. |
Mine is broken with newer versions. Even an empty FigureWidget() gives an error:
I'm running: (python36) C:\WINDOWS\system32>jupyter labextension list |
Aarg... I have the same problem. Again! The Jupyter code is similar to @VeneficusFerox :
I'm running:
My docker file contains:
Previously it was
|
I have yet to get it working again, and I've just given up. Widgets is NOT
ready for prime time.
…On Fri, Mar 27, 2020 at 12:18 PM Fabre Lambeau ***@***.***> wrote:
Aarg... I have the same problem. Again!
I had it working for a couple of months in a docker image, but on
rebuilding it today (because I changed a line of the DockerFile that was
completely unrelated), I now get the same issue.
I've also tried upgrading the extensions in line with
https://plotly.com/python/getting-started/#jupyterlab-support-python-35,
but I still have the same error:
Error displaying widget: model not found
My docker file contains:
ENV NODE_OPTIONS=--max-old-space-size=4096
RUN jupyter labextension install @***@***.*** --no-build \
&& jupyter labextension install ***@***.*** --no-build \
&& jupyter labextension install ***@***.*** --no-build \
&& jupyter labextension install @aquirdturtle/collapsible_headings --no-build \
&& jupyter labextension install @jupyterlab/toc --no-build \
&& jupyter labextension install jupyterlab-python-file --no-build \
&& jupyter lab build
Previously it was
ENV NODE_OPTIONS=--max-old-space-size=4096
RUN jupyter labextension install @***@***.*** --no-build \
&& jupyter labextension install ***@***.*** --no-build \
&& jupyter labextension install ***@***.*** --no-build \
&& jupyter labextension install @aquirdturtle/collapsible_headings --no-build \
&& jupyter labextension install @jupyterlab/toc --no-build \
&& jupyter labextension install jupyterlab-python-file --no-build \
&& jupyter lab build
The Jupyter code is similar to @VeneficusFerox
<https://github.com/VeneficusFerox> :
f = go.FigureWidget()
f```
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1659 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUK3K3QFAUDBYN6ACV2DSTRJT3Y3ANCNFSM4H62YR3A>
.
--
Marc A. Murison
[email protected]
http://alpheratz.net/
I could be bounded in a nut shell
and count myself a king of infinite space,
were it not that I have bad dreams.
― William Shakespeare, The Tragedy of Hamlet, Prince of Denmark, Act 2,
Scene 2.
|
If you're encountering issues like this, please check out our troubleshooting guide at https://plotly.com/python/troubleshooting/ and if that's not enough to get you unstuck, please create a new issue. Please pay close attention to the versions: you must have corresponding versions of JupyterLab, the extension-manager and both Plotly extensions as well as the Plotly.py version for things to work. If you simply upgrade the Plotly.py version and try to run with older extensions, you will see |
Hi,
I noticed that if I upgrade to the latest version of
ipywidgets==7.5
this breaksFigureWidget
in my jupyter lab notebook (in offline mode).The part of my docker file that install plotly looks like this:
I get the "Error displaying widget" message. Looking in the console gives me this error:
If I revert back to 7.4 then the error goes away. I only noticed this because I originally had my ipywidgets install line set to
"ipywidgets>=7.2"
which is what the plotly.py install instructions recommend.The text was updated successfully, but these errors were encountered: