-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Graphs auto shrunk with Voila #2083
Comments
Seeing identical issue with plotly==4.2.1, voila==0.1.18 |
Hi @b060149ee and @jg1141 thanks for the report. It would really help if you could share a standalone notebook reproducing the issue, because I made a quick test with a plotly figure in a notebook and the voila rendered app looked good, so it's hard to investigate. Thanks! |
@emmanuelle In this notebook, I reproduced your success with a SINGLE plot, then kept adding plots until the issue came up (after 4th plot) as shown in screenshot . |
Note that in re-testing this example just now, if I render the plots in JupyterLab FIRST, then Voilà works perfectly, but if I reset the kernel and JUST run the notebook in Voilà, the first and second plots are shrunk as shown. |
Noticed this today myself. Has anyone identified a workaround? |
I also encountered this issue today. Some plots were rendering by Voila but some not. I tried almost everything to solve this problem but nothing worked. After that, I noticed that indicating In this example, I introduced
|
Thank u so much dear. Okroshiashvili. |
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson |
Hi,
We use plotly, jupyter lab and voila for our work. Recently we have started facing an issue with plotly graphs in our notebook files shrinking completely. This behaviour is experienced with standalone voila execution of notebooks and also when a voila button is clicked in Jupyter Lab.
The current plotly version that we use is 4.4.1 and voila is at 0.1.20.
Please note that this behavior is not consistent. Sometimes both the graphs shrink, sometimes just one graph shrinks, other times both do not shrink. Also, most importantly, as soon as I resize the window that has these graphs, the graphs come back and autofit properly.
See the 'svg-container' div element's width and height attributes in the below image - one graph's width and heights are in px values, whereas the other graph's in %.
By shrink, I mean this:
Any kind of help is appreciated. I'm unable to give a reproducible notebook, so I apologize in advance. My only hope is that ppl who are aware of plotly's svg-container div elements would understand the issue right away with the way the width elements are sometimes pixels and %s.
Thanks,
The text was updated successfully, but these errors were encountered: