You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that disabling the actions links in the Altair charts using altair.renderers.set_embed_options(actions=False) does not work. I am not sure whether it's marimo's or altair's issue. It's probably the latter since the same problem has been reported for streamlit.
The workaround proposed in the Streamlit's discussion here is to do the following per chart:
importmarimoasmoimportpandasaspdimportaltairasaltalt.renderers.set_embed_options(actions=False)
df=pd.DataFrame({"x": [1,2,3], "y": [10,20,30]})
chart=alt.Chart(df).mark_point().encode(x="x", y="y")
mo.ui.altair_chart(chart)
## However, using the following per chart works:chart["usermeta"] = {
"embedOptions": {
"actions": False,
}
}
mo.ui.altair_chart(chart)
The text was updated successfully, but these errors were encountered:
Thanks for the detailed issue. I am surprised that altair does not handle this internally, but using your workaround, I can make this embedOptions set globally are always set on all charts.
Describe the bug
It seems that disabling the actions links in the Altair charts using
altair.renderers.set_embed_options(actions=False)
does not work. I am not sure whether it's marimo's or altair's issue. It's probably the latter since the same problem has been reported for streamlit.The workaround proposed in the Streamlit's discussion here is to do the following per chart:
Environment
Code to reproduce
The text was updated successfully, but these errors were encountered: