aiidateam / aiida-workgraph

Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.
https://aiida-workgraph.readthedocs.io/en/latest/
MIT License
9 stars 5 forks source link

Implement `_repr_html_`function for the widget #237

Open agoscinski opened 3 weeks ago

agoscinski commented 3 weeks ago

For making the widget work with other tools like sphinx-gallery an implementation of the _repr_html_ function is needed. Given that we already have the to_html function that already generates a html string, it is straightforward to implement. For some reasons however this does not work when trying out with sphinx-gallery. I think this feature is not only limited to sphinx-gallery but right now this is the only feature that I tried out implementing it and failed.

@superstar54 pointed out that it might be related to this issue https://github.com/manzt/anywidget/issues/396.