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

type annotations for chainable Figure methods #3708

Merged
merged 3 commits into from
May 4, 2022
Merged

Conversation

nicolaskruchten
Copy link
Contributor

No description provided.

@nicolaskruchten nicolaskruchten merged commit f919a37 into master May 4, 2022
@nicolaskruchten
Copy link
Contributor Author

This PR lets you do things like px.scatter(...).<tab> and your IDE (VSCode, Jupyter, others) will be able to suggest all the go.Figure methods to you like update_layout(). Furthermore, those methods have type hints now too so you can do px.scatter(...).update_layout(...).<tab> and get suggestions.

For folks not into long chains, the following is nice too: fig = px.scatter(...); fig.<tab> and you get suggestions.

(N.B. the autocomplete key isn't always <tab> but hopefully my meaning is clear :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant