Skip to content
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

ipywidgets displayed by metakernel 0.25.0 python magic freezes voila #682

Open
joequant opened this issue Aug 20, 2020 · 3 comments · Fixed by Calysto/metakernel#212
Open

Comments

@joequant
Copy link

metakernel 0.25.0 has a new feature in which you can use python magics to create ipywidgets. However voila freezes when encountering these cells.

To reproduce:

Set up a metakernel kernel with 0.25.0 such as calysto/bash-kernel

Include the following two cells

%%python
import ipywidgets

%%python
ipywidgets.IntSllider()

These widgets will appear fine in the kernel, but voila will freeze when it runs the slider cell. Metakernel uses special code to handle ipywidgets which I wrote, and so there is something that voila is tripping over.

@joequant
Copy link
Author

The only difference I can see between ipython and metakernel is that metakernel returns None rather than an empty dict

@joequant
Copy link
Author

I've put in a fix to metakernel, but would suggest that voila should issue an error rather than waiting for a time out.

@joequant
Copy link
Author

Appears to be an issue in nbclient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant