-
Notifications
You must be signed in to change notification settings - Fork 505
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
Rendering stuck on cell that reads data #1428
Comments
Anything in the browser Console? |
I just found out that it is not actually that cell that causes the problem, but the cell after:
A portion of the error that I see in the console is as follows:
|
Try commenting out the figure part and see if the HTML displays okay. Then try moving the fig_ts part above the 'with'. |
I did a reinstall and the current error that Voila gives me is that it cannot find the module plotly, even though it is installed in my environment and I can the code in the notebook just fine. Is it calling another kernel? |
Try starting Jupyter/voila with --enable_nbextensions=True |
Gave me the same errors unfortunately, so plotly module not found and kernel does not exist. |
Hi, could post the full reproduction code? It is easier for us if you follow the issue template. |
Okay, able to recreate the same on another system/vm? Usually it works very well together, so trying to eliminate any external factors. |
My code is as follows:
It is stuck on 2/4. The message I see in console is:
|
My requirements is as follows: ipykernel==6.27.1 Running Python version 3.12.1 |
I was able to reproduce the issue with the same Python and library versions.
Alternately, move the display part inside the show_ts() function. Attaching both versions of notebooks - |
Thanks for your help! Unfortunately, Voila fails to run for both of your notebooks. It seems like display(fig_ts) also does not work. |
I tried Voila version 0.4.0, after which the code does work. Why would that be? |
fyi, I have also noticed this issue using python 3.12 and using the latest voila etc.. voila gets stuck on x of x with this in the logs:
Trying to read up on where best to place that or what the root cause might be. The stopping also seems to be related to heavy ipywidget notebooks, I will post any solutions I find. @Dr4cky , this may be related, see the comments #1395, I am looking forward to the new release to hopefully get better insight and troubleshooting. |
Thanks! I gave up trying to figure it out and just used an older version of Voila (0.4.0). Hopefully they will fix it, though, |
Thanks for the reproduction, I will take a look at it. |
@trungleduc, please let us/me know if there are any additional steps we could take to aid in nailing this down. |
I'm able to reproduce the issue with a more compact snippet import ipywidgets as widgets
import os
returns_plot = widgets.Output()
with returns_plot:
display(widgets.HTML("Hello"))
display(widgets.IntSlider())
returns_plot with these dependencies voila=0.5.5
ipywidgets=8.1.1
ipykernel=6.29.0
jupyter_client=8.6.0
nbclient=0.7.4 Voila will hang randomly after some refreshes. I think the issue is related to #1234 and #1253. Voila hangs because in this Moreover, from this comment (#1234 (comment)), it looks like this block is actually the culprit since if I remove it, Voila works as expected after multiple refreshes. if isinstance(stream, zmq.asyncio.Socket):
assert stream is not None
stream = zmq.Socket.shadow(stream.underlying) Ping @davidbrochart @blink1073 if you have idea how to fix this. |
Yes, the asyncio logic is definitely convoluted, I'm working on a fix in jupyter/jupyter_client#997, but I haven't had much bandwidth recently. |
I don't think the issue is with that code block per se, because the effect is that it is not actually sending, because |
Is there a better parent issue to track the discussions on this? Either on jupyter_server or something? |
For anyone who tries to resolve this issue. |
I ended up having to back port some voila 0.5 changes to a forked version of 0.4.4, using jupyter-server 1.18.1. That worked for me. |
Has anyone found a consistent workaround or solution for this? I know someone said the pre heated kernels worked for them as a workaround. We tried that and did not see a resolution to the issue. |
@afonit do you have this issue without using the |
@trungleduc when I had just done a new vm (ubuntu 20.04) today and did everything fresh, it was the same issue as before, as you noted in: I am trying with these libraries:
We were using some very old packages that worked really well together but have not had to reimage and upgrade. Right now it is being intermittent in working. I did notice I am getting some messages like in: #1458 and
To answer your output question, yes if I do some very basic notebooks with no outputs just markdown and a widget - they render fine in Voila. |
I would avoid using the Output widget, and just render the normal widgets or group them in the HBox or VBox widget for now. Calling |
We will try to do that - thank you. We have those heavily embedded id display's, we will try to simplify them and make it work - almost all our notebooks are widget/display heavy. Thanks for your time and replies. |
I have the same issue as soon as I add a widget from ipywidgets (v8): Rendering progress bar is stuck a x out of y steps. |
Hi @jvailius, could you provide your code to reproduce the issue? Does it involve using the |
Hi @trungleduc - this is somewhat embarrassing because I can't reproduce it. I can not say why it works now with an interactive widget. Although from time to time it is stuck again - but rarely. Either is is a change to my code or some dependency that changed while trying different voila/widgets versions. Sorry for the noise. :/ |
@jvailius Actually this issue is quite hard to reproduce, it also happened to me, so I want to limit the possible culprits. The most possible reason is the |
Forgot to mention that I was not using |
same here |
Hi, Don't know if this might be helpful in solving the issue, but a fix for me has been to replace display (within out context voila was hanging) by append_display_data, as per the code below which I believe is similar.
Apologies if this is unrelated. |
Hi all, we released a new rendering method in Voila 0.5.8 (https://voila.readthedocs.io/en/stable/customize.html#changing-dashboard-rendering-technique). You can activate it by using the flag Could you try this mode to see if the issue is still persistent? |
Hi there,
I am having an issue and I have no idea why it is not working. The rendering gets stuck on the following cell:
It doesn't show an error, it just keeps loading forever "Executing 2 out of 6".
If I just simply run this cell in my notebook, it runs instantly. Any idea what is going wrong?
Thanks!
The text was updated successfully, but these errors were encountered: