Skip to content

1.13.0

Latest
Compare
Choose a tag to compare
@SiddhantSadangi SiddhantSadangi released this 31 Oct 09:01
9747b21

What's Changed

Added **kwargs to upload() and File.as_html() methods

by @SiddhantSadangi in #1881

This change lets you pass include_plotlyjs as a keyword-only argument to upload() and as_html() methods.

The default True value retains current behaviour of embedding the plotly.js source-code in the HTML, increasing size of the object by ~3MB. Passing include_plotlyjs="cdn" (recommended for Neptune SaaS users) reduces the size of the uploaded HTML file by ~3MB, but requires an active internet connection to load the plotly.js library.


Added expand flag to stringify_unsupported() to expand series

by @SiddhantSadangi in #1862

This PR adds an optional expand flag to stringify_unsupported() to expand series like lists, sets, and tuples, thereby storing nested values in their proper folder structure within enumerated folders, making it easier to both search for metadata and download it.
The default behavior (expand=False) logs series as a string.

complex_dict = {"tuple": ("hi", 1), "metric": 0.87}

run["complex_dict"] = stringify_unsupported(complex_dict)
# {'metric': 0.87, 'tuple': "('hi', 1)"} - tuple logged as string

run["complex_dict_expanded"] = stringify_unsupported(complex_dict, expand=True)
# {'metric': 0.87, 'tuple': {'0': 'hi', '1': 1} - tuple logged as an enumerated dictionary

Full Changelog: 1.12.0...1.13.0