According to the plotly docs: https://plotly.com/python/configuration-options/ you can pass a config parameter to fig.show(). When I try to use fig.show(config=config) it pops out into a new browser tab. Is there a way to utilize the config parameter to update the graphs that streamlit displays?
Example:
config = {
‘toImageButtonOptions’: {
‘format’: ‘svg’, # one of png, svg, jpeg, webp
‘filename’: ‘custom_image’,
‘height’: 500,
‘width’: 700,
‘scale’: 1 # Multiply title/legend/axis/canvas sizes by this factor
}
fig = px.bar(x=[1, 2, 3], y=[1, 3, 1])
fig.show(config=config)