pyglove
pyglove copied to clipboard
Manipulating Python Programs
``` import pyglove as pg class A(pg.Object): x: Annotated[Dict, "."] = dict() y: Annotated[str, "."] = ".." # Define a simple dictionary data = A(x={1:1}) ``` Most normal user may...
assoicated -> associated
## Problem The SVG images in [`docs/notebooks/intro/search/evolution_algorithm.ipynb`](https://github.com/google/pyglove/blob/f93aa2d6244734c7c357a7a1282161f8fc33b539/docs/notebooks/intro/search/evolution_algorithm.ipynb) do not render in the built documentation:  https://pyglove.readthedocs.io/en/latest/notebooks/intro/search/evolution_algorithm.html ## Solution Embed the SVG image in HTML in the markdown cell.
Add HTML conversion support. This CL adds `pg.object_utils.html_conversion` sub-module, which provides a framework for converting Python objects into HTML views throug `pg.to_html). Users could simply inherit `pg.HtmlConvertible` to add HTML...