ENH: Allow pd.set_option
to control the uuid4 seed used in pd.io.formats.style.Renderer
#58593
Closed
1 of 3 tasks
Labels
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
When running Notebooks with HTML output of tables, the uuid for each tables css class changes between runs creating uneeded diffing.
This it to prevent name collisions but results in a random uuid4 string for each table.
Feature Description
The uuid instance could optionally be seeded: https://stackoverflow.com/a/41186895
A config option, say
styler.html.uuid_seed
would allow users to optionally set and reset it for reproducibility or otherwise.This would be kept as module state to be shared by all Styler objects, resulting in import level reproducibility.
Already Styler's may be passed id's to use in place of uuids. Permitting the default to remain the same.
The implementation of StylerRenderer's init would be altered to share the uuid state.
Alternative Solutions
Alternatively a StylerRenderer Singleton Factory might be implemented.
Additional Context
https://stackoverflow.com/a/41186895 - UUID seeding.
Relevant init line
Describe config docs
The text was updated successfully, but these errors were encountered: