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

Adding plotly v5 support! #1981

Merged
merged 7 commits into from
Aug 18, 2022
Merged

Adding plotly v5 support! #1981

merged 7 commits into from
Aug 18, 2022

Conversation

brimoor
Copy link
Contributor

@brimoor brimoor commented Aug 4, 2022

Resolves #1099
Resolves #1319

This PR removes the plotly<5 restriction that exists in FiftyOne's current dependencies (currently we require plotly>=4.14,<5).

After doing some digging, it turns out this small regression introduced in plotly==5.0.0 was breaking the selection callbacks of our interactive plots.

The plotly maintainers patched this regression in plotly==5.2.1, so this PR could have just updated our dependency to plotly>=5.2.1. However, it was simple to patch the regression and thus support plotly>=4.14.

I also added a jupyterlab>=3 requirement to the recommended JupyterLab setup instructions in the docs, which simplifies the install process.

This PR was tested by manually running these two examples in Jupyter notebooks and JupyterLab:

@brimoor brimoor added bug Bug fixes enhancement Code enhancement labels Aug 4, 2022
@brimoor brimoor requested a review from a team August 4, 2022 23:59
@brimoor brimoor self-assigned this Aug 4, 2022
Copy link
Contributor

@benjaminpkane benjaminpkane left a comment

Choose a reason for hiding this comment

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

Tested, LGTM

@brimoor brimoor merged commit 17c7ee4 into develop Aug 18, 2022
@brimoor brimoor deleted the feature/plotly-v5 branch August 18, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes enhancement Code enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Upgrade plotly [BUG] Interactive plots are not updating in response to selections in Jupyter notebooks
2 participants