Restore (and warn on) seaborn styles in style.library - #24265
Conversation
There was a problem hiding this comment.
Can you explain this? You just tested this three lines above - do we understand why that test passed?
There was a problem hiding this comment.
That's style.use, this is style.library.
There was a problem hiding this comment.
Ah...
OTOH, do we expect users to access style.library? Should this be private, or is it useful to expose?
There was a problem hiding this comment.
I don't know if we expect them to or not, but we already have the bug report from a user, so it is being used. It is also documented, at least a little, in the module docstring. In any case, this is only the bug fix for now.
| """Reload the style library.""" | ||
| global library | ||
| library = update_user_library(_base_library) | ||
| library.update(update_user_library(_base_library)) |
There was a problem hiding this comment.
To match previous semantics, library should be cleared first?
6d176ed to
0c1f7e5
Compare
…265-on-v3.6.x Backport PR #24265 on branch v3.6.x (Restore (and warn on) seaborn styles in style.library)

PR Summary
Fixes #24264
PR Checklist
Tests and Styling
pytestpasses).flake8-docstringsand runflake8 --docstring-convention=all).Documentation
doc/users/next_whats_new/(follow instructions in README.rst there).doc/api/next_api_changes/(follow instructions in README.rst there).