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

debugging callback widget events #9

Open
havok2063 opened this issue Feb 10, 2020 · 3 comments
Open

debugging callback widget events #9

havok2063 opened this issue Feb 10, 2020 · 3 comments

Comments

@havok2063
Copy link

What's the best way to debug callback widget events in Voila? I put a bunch of print statements inside my callback, and started Voila in debug mode, but that info didn't seem to print to stdout. I get everything else. This link seems to only refer to debugging within the notebook. Running through Voila, I can't access the debug_viewer.

@mariobuikhuizen
Copy link
Owner

The output widget can be made available to Voila by adding a mount-id:

import ipywidgets as widgets
import traitlets

out = widgets.Output()
out.add_traits(_metadata=traitlets.Dict(default_value={'mount_id': 'out'}).tag(sync=True))
out

@mariobuikhuizen
Copy link
Owner

Added an example in d4cde49

@havok2063
Copy link
Author

Awesome, thanks! This is helpful.

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

No branches or pull requests

2 participants