-
Notifications
You must be signed in to change notification settings - Fork 23
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
Javascript errors when recreating widgets #22
Comments
Javascript isn't really my thing and JupyterLab's kernel code even less so, but after poking around a bit today I think the problem is that there are two kernel connections (one from Voila itself and one from this template for the kernel-busy icon) and they're both trying to handle comm messages, but only one has the appropriate objects registered. There is code in
That seems to be working for my little examples above, but I'll plan on testing it with some of our full notebooks later. It seems like the "real" fix might be for Voila to update to the latest |
My organization was looking at using voila-material as our default template (love the kernel-busy indicator!), but we discovered it breaks a widget pattern we use for authentication. We have to upload a file and enter a password, so we have something like the below example, where uploading the file enables the password widget, while clicking the reset button recreates the upload widget and disables the password widget. Unfortunately, clicking reset generates javascript errors in the console and the password widget can no longer be enabled. This works fine in the default template.
Here's a screenshot of the errors. It looks like this might be the same as #18 and #19?
Here's a slightly smaller example that generates the same errors:
Edited to add: voila 0.2.6 and voila-material 0.4.0
The text was updated successfully, but these errors were encountered: