streamlit-agraph
streamlit-agraph copied to clipboard
Allow to pass key to an agraph
when I create 2 agraphs on a page, streamlit complains:
streamlit.errors.DuplicateWidgetID: There are multiple identical `st.streamlit_agraph.agraph` widgets with the
same generated key.
When a widget is created, it's assigned an internal key based on
its structure. Multiple widgets with an identical structure will
result in the same internal key, which causes this error.
To fix this error, please pass a unique `key` argument to
`st.streamlit_agraph.agraph`.
but trying to do so ends up in an Uncaught app exception - TypeError: agraph() got an unexpected keyword argument 'key'
can we please allow agraph to accept the key argument ? does it make sense to have 2 agraphs on a page ?