mariobuikhuizen / voila-embed

Embed jupyter widgets in existing websites
Other
52 stars 7 forks source link

how to implement debug feature in embed mode #19

Open havok2063 opened 3 years ago

havok2063 commented 3 years ago

This PR, https://github.com/spacetelescope/jdaviz/pull/368, introduced a new debug feature that added a bug icon collecting and displaying errors. Is this feature accessible via voila-embed? I tried adding a ?debug suffix to the voila-url but that returned an error Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data. Or does the juptyer-widget-component accept added query parameters as arguments?, e.g.

<jupyter-widget-embed
        voila-url="http://example.com:8000"
        notebook="notebook.ipynb"
        mount-id="my-widget"
        debug=True
></jupyter-widget-embed>