Skip to content

Conversation

pypae
Copy link
Contributor

@pypae pypae commented Feb 19, 2025

📚 Context

Following documentation for matplotlib throws AttributeError: ‘RendererAgg’ has no attribute ‘lock’

🧠 Description of Changes

Update code snippet to use threading.RLock instead of the no longer existing RendererAgg.lock

Size:

  • [ x ] Small

🌐 References

Forum discussion

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@sfc-gh-dmatthews sfc-gh-dmatthews self-requested a review February 19, 2025 17:34
@sfc-gh-dmatthews
Copy link
Contributor

Thank you for the update! I extended the example to make it executable and linked to documentation for Rlock, too.

@sfc-gh-dmatthews sfc-gh-dmatthews merged commit 1ae6c6a into streamlit:main Mar 6, 2025
5 checks passed
sfc-gh-tteixeira pushed a commit that referenced this pull request Mar 8, 2025
* Update pyplot.md using RLock

* Executable example and link to docs

---------

Co-authored-by: Debbie Matthews <debbie.matthews@snowflake.com>
Former-commit-id: 1ae6c6a
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.

2 participants