Skip to content

Conversation

@hansthen
Copy link
Collaborator

@hansthen hansthen commented Sep 27, 2025

Branca/folium uses random numbers to generate ids. This has some disadvantages. E.g. in the streamlit-folium plugin they have to replace the random ids with predictable ids for comparison between streamlit runs. Also, in the folium tests, we have to normalize the variable names to compare between expected and actual results.

This change in Branca makes it possible to override or customize id generation. This allows client libraries to experiment with new id generation schemes.

Branca/folium uses random numbers to generate ids. This has some
disadvantages. E.g. in the streamlit-folium plugin they have to
replace the random ids with predictable ids for comparison between
streamlit runs.

Also, in the folium tests, we have to normalize the variable names
to compare between expected and actual results. This change in Branca
makes it possible to override or customize id generation. This allows
client libraries to experiment with new id generation schemes.
@ocefpaf ocefpaf merged commit 54f16d4 into python-visualization:main Oct 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants