Setting dynamic visibility in plotly with function I would like to set a “dynamic” visibility when using plotly.