-
Notifications
You must be signed in to change notification settings - Fork 504
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
Notebooks utilizing ipywidgets.Output() don't work with progressive rendering #394
Comments
I am not sure I understand this issue... What is not working exactly? |
The notebook won't render at all, there's more background on gitter |
#396 might inadvertently fix this |
Ok, sorry I did not pay attention to the gitter discussion. I will try on my branch and on master. |
You are talking about this notebook, right? # Cell 1
import time
from ipywidgets import *
from IPython.display import display
# Cell 2
class Test(object):
def __init__(self):
self.layout = Output()
with self.layout:
print('Hello world')
def render(self):
display(self.layout)
# Cell 3
time.sleep(10)
t = Test()
# Cell 4
t.render() I added the |
What happens if you don't use the output, just instantiate it e.g. remove the |
Well it does not show anything as expected. The |
For me the page spins, and nbconvert hangs on connecting to the existing kernel |
Weird. I cannot reproduce it locally. The thing is the current master reconnects to the kernel for each cell... That is fixed in 396, which may be why your use case now works. |
Yeah I will test to make sure. It was hanging on a |
#396 fixes some output issues indeed, I was chasing a different bug for interact, so I think before this PR the outputs were buggy. I'm assuming you problem is also fixed, otherwise feel free to reopen. |
include the following in a cell after the first
The text was updated successfully, but these errors were encountered: