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

Remove side-effects of calling EncodingChannelMixin.to_dict #2813

Merged
merged 3 commits into from
Jan 9, 2023

Conversation

binste
Copy link
Contributor

@binste binste commented Jan 7, 2023

Fixes #2497. CC @joelostblom. It can be verified by using the example code in the mentioned issue.

…hanging chart representations after displaying them
@binste binste force-pushed the remove_sideeffects_of_to_dict branch from 8346003 to 05b52b7 Compare January 7, 2023 17:26
Copy link
Contributor

@joelostblom joelostblom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for tackling this issue! To prevent this regressing in the future, could we add a test that checks that the chart spec contains the shorthand syntax and that it is expanded to the long form syntax when using to.dict(), both before and after displaying (or equivalent) a chart?

@binste
Copy link
Contributor Author

binste commented Jan 8, 2023

Sure! Done :)

Copy link
Contributor

@joelostblom joelostblom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

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.

Chart representation changes after the chart is displayed
2 participants