-
Notifications
You must be signed in to change notification settings - Fork 63
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 support for Seaborn figures #1613
Conversation
Additionally: 1. Adds related e2e tests 2. Renames 'is_seaborn_axisgrid' to 'is_seaborn_figure'
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1613 +/- ##
==========================================
- Coverage 80.09% 73.84% -6.25%
==========================================
Files 292 292
Lines 14554 14278 -276
==========================================
- Hits 11657 10544 -1113
- Misses 2897 3734 +837
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@szysad |
ed968d4
to
3fd4cd6
Compare
src/neptune/internal/utils/images.py
Outdated
SEABORN_GRID_CLASSES = set( | ||
[ | ||
"FacetGrid", | ||
"PairGrid", | ||
"JointGrid", | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this is technically correct, the syntax is slightly confusing and IDEs like PyCharm complain about it.
Let's replace it with a set literal:
SEABORN_GRID_CLASSES = {"FacetGrid", "PairGrid", "JointGrid"}
Also, what happened to 'pairplot' and 'jointplot'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pairplot
and jointplot
are functions provided to user in seaborn axisgrid but they always return instances of FacetGrid
, PairGrid
or JointGrid
so it was redundant in the first place
- fix `generate_seaborn_figure` function so it works with seabron 0.11.2 - move seaborn grid classes list to const var - fix CHANGELOG.md header format - apply given-when-then test comment convention
3fd4cd6
to
ef2eddd
Compare
@@ -45,6 +45,7 @@ altair = { version = "*", optional = true } | |||
bokeh = { version = "*", optional = true } | |||
freezegun = { version = "*", optional = true } | |||
matplotlib = { version = "*", optional = true } | |||
seaborn = { version = "*", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to add it as a part of dev
group as well (see lines between 112 and 143) 😉. This works as seaborn is probably a dependency of some of the other packages.
Before submitting checklist