-
Notifications
You must be signed in to change notification settings - Fork 136
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
Regular non-Solara plots not showing in Jupyter Notebooks after Solara has been used #703
Comments
A workaround is adding I still think this is weird behavior. |
Does this also happen after a simple solara import? |
Thanks for getting back. Taking some minimal examples, it looks like everything works fine: solara_minimal_test.zip Which means probably something is wrong with our implementation. Can you spot anything obvious? |
https://github.com/projectmesa/mesa/blob/74e2df6fdfc2d5172f84eb96469b277b35bfd795/mesa/visualization/jupyter_viz.py#L39 seems suspicious. |
Thanks! Let me check it out. |
For some reason, regular matplotlib and seaborn plots don't show anymore after a Solara page has been initiated. In the code below you can see the first seaborn plot showing well, but the second not showing.
In PyCharm, the first plot is also shown fine, but instead of just not showing the second plot anymore, but gives an error:
Here's a notebook to reproduce: solara_bug_plotting.zip
And here's the same notebook in Google Colab.
First plot shows fine:
After a Solara component, the second errors or doesn't show anymore:
The text was updated successfully, but these errors were encountered: