Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_vline fails in batch mode #4742

Open
dejfh opened this issue Aug 30, 2024 · 0 comments
Open

add_vline fails in batch mode #4742

dejfh opened this issue Aug 30, 2024 · 0 comments
Labels
bug something broken P3 not needed for current cycle

Comments

@dejfh
Copy link

dejfh commented Aug 30, 2024

I am using plotly 5.24.0 with python 3.10.12 in a vs-code interactive window.

The following example raises TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' in [...]/site-packages/plotly/basedatatypes.py:3995

import plotly.graph_objects as go

fig = go.Figure()

with fig.batch_update():
    fig.add_vline(1)

The same example without batch mode works fine:

import plotly.graph_objects as go

fig = go.Figure()

fig.add_vline(1)
@gvwilson gvwilson added bug something broken P2 needed for current cycle P3 not needed for current cycle and removed P2 needed for current cycle labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants