Closed juba closed 1 year ago
Thanks for opening this issue. I just had a look, and it seems the _esm
and _css
traits are considered defaults, which embed_minimal_html
explicitly ignores when serializing state.
The error message you got doesn't seem to be helpful at all in resolving this issue, but I had the following work:
embed_minimal_html("/tmp/out.html", views=[counter], drop_defaults=False)
Can you let me know if this resolves your issue?
Fantastic, I can confirm it solves the issue for my use case.
Many thanks !
Hi,
I'm having trouble trying to save a widget created with
anywidget
to an HTML file withipywidgets.embed.embed_minimal_html()
.Here is a simple example:
Once opened in a browser, the resulting HTML file throws a JavaScript error:
I'm not sure if it is a problem related to anywidget or if I don't use this feature correctly. I'm using anywidget 0.6.5.
Many thanks for all your work !