Skip to content
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

solara.FigurePlotly leads to empty plot in Google Colab #323

Open
ramnathv opened this issue Oct 10, 2023 · 5 comments
Open

solara.FigurePlotly leads to empty plot in Google Colab #323

ramnathv opened this issue Oct 10, 2023 · 5 comments

Comments

@ramnathv
Copy link

ramnathv commented Oct 10, 2023

First off, this is an amazing project! Combines the ease of use of a framework like Streamlit, and the sophistication of Dash 👏
I tried running this plotly example in Google Colab, but it gave me an empty plot. My browser console displayed a lot of error messages, and I am happy to copy-paste them if it would help debug.

https://github.com/widgetti/solara/blob/master/solara/website/pages/examples/basics/sine.py

I tried it in a VS Code Jupyter Notebook and it works perfectly. I suspect this is a Google Colab related issue.

@iisakkirotko
Copy link
Collaborator

Hi @ramnathv!

Indeed, we have had some other difficulties with Google Colab previously. I was wondering whether the error messages were related to requirejs/require (see, for instance #292)?

@ramnathv
Copy link
Author

ramnathv commented Oct 11, 2023

I am not seeing requirejs errors in colab. This is what I see in the browser console.

image

Here is a minimal reproducible example in Google Colab https://colab.research.google.com/drive/1MPCrljz7BsNyd5fx8CQnMvwWBpEfTRnR?usp=sharing

@tpike3
Copy link

tpike3 commented Aug 23, 2024

I think this error or a version of it is back. Previously the Mesa tutorial rendered fine in colab but now it is not rendering.

Direct Colab link

@maartenbreddels
Copy link
Contributor

I think this error or a version of it is back. Previously the Mesa tutorial rendered fine in colab but now it is not rendering.

It's a similar error indeed, but now for the GridDraggable. I'm not sure why Mesa is using that, but we should fix it anyway.

@maartenbreddels
Copy link
Contributor

The error by @tpike3 is solved by #763 (Solara 1.39.0) but the plotly error is not related to this I think.

@ramnathv did you try a normal plotly figure, and a plotly figure widget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants