I would really like to use the add_vline functionality and I am a bit puzzled as documentation clearly says βAdd a vertical line to a plot or subplot that extends infinitely in the y-dimension.β and all examples here extends beyond 1 too: Therefore it looks to me like the intended behavior should be to have the line extends beyond 1.
The add_vline function uses recently-added features in the underlying rendering engine, Plotly.js, meaning you need a recent version of Plotly.js wherever you are using Plotly.py. In practice this means installing the latest jupyterlab-plotly extension in JupyterLab, the latest dash/dash_core_components in Dash, or waiting until VSCode and/or Streamlit update their onboard copies of Plotly.js, if youβre seeing this problem in those environments.
Thank you @nicolaskruchten that makes a lot of sense. I am experiencing the problem with Dash - in my corporate setting I can upgrade to version 1.13.4 at the moment. I can see the latest is 1.19. Is there a way to know from which version it would work? (assuming my I.T. department will not be willing to jump too many versions at once)