pyglove icon indicating copy to clipboard operation
pyglove copied to clipboard

Manipulating Python Programs

Results 14 pyglove issues
Sort by recently updated
recently updated
newest added

``` 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...

## 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: ![screencap_2024-10-27_05-22-36](https://github.com/user-attachments/assets/7c542ea4-2916-4329-8e6b-10ac45f377e7) 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...