René's URL Explorer Experiment


Title: MNT: Should we re-organize shared agg files in /src ? · Issue #32589 · matplotlib/matplotlib · GitHub

Open Graph Title: MNT: Should we re-organize shared agg files in /src ? · Issue #32589 · matplotlib/matplotlib

X Title: MNT: Should we re-organize shared agg files in /src ? · Issue #32589 · matplotlib/matplotlib

Description: We currently have 4 files in /src which are used by the _backend_agg, _image, and _path modules: _backend_agg_basic_types.h path_converters.h py_adaptors.h py_converters.h Additionally, we have py_converters.cpp which is only used by _im...

Open Graph Description: We currently have 4 files in /src which are used by the _backend_agg, _image, and _path modules: _backend_agg_basic_types.h path_converters.h py_adaptors.h py_converters.h Additionally, we have py_...

X Description: We currently have 4 files in /src which are used by the _backend_agg, _image, and _path modules: _backend_agg_basic_types.h path_converters.h py_adaptors.h py_converters.h Additionally, we have py_...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32589

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MNT: Should we re-organize shared agg files in /src ?","articleBody":"We currently have 4 files in /src which are used by the `_backend_agg`, `_image`, and `_path` modules:\n\n- [_backend_agg_basic_types.h](https://github.com/matplotlib/matplotlib/blob/main/src/_backend_agg_basic_types.h)\n- [path_converters.h](https://github.com/matplotlib/matplotlib/blob/main/src/path_converters.h)\n- [py_adaptors.h](https://github.com/matplotlib/matplotlib/blob/main/src/py_adaptors.h)\n- [py_converters.h](https://github.com/matplotlib/matplotlib/blob/main/src/py_converters.h)\n\nAdditionally, we have [py_converters.cpp](https://github.com/matplotlib/matplotlib/blob/main/src/py_converters.cpp) which is only used by `_image`. If `_path` or `_backend_end` tries to use `convert_trans_affine()`, they will get a missing symbol at compile time.\n\nThe dependency tree looks like this:\n\n\u003cimg width=\"640\" alt=\"Dependency tree\" src=\"https://github.com/user-attachments/assets/16c0984b-4360-4dac-b4a4-ec54deb7c205\" />\n\nDuring my nanobind work, I struggled to understand the grouping of these files and had several questions:\n\n- Why is \"_backend_agg_basic_types.h\" named with the \"backend\" prefix when it is used by `_path`?\n- Why do \"path_converters\" and \"py_converters\" end with a \"converters\" suffix when they implement two very different ideas?\n- What is the difference between a \"py_adapter\" and the classes found in \"_backend_agg_basic_types\"?\n- Why do we split `_backend_agg`, `_image`, and `_path` into three modules when they all use agg? There's approximately 15% duplicated agg code and 10% duplicated pybind11 code present in the three modules. Most of the duplication is between `_path` and `_backend_agg`. I understand why `_image` makes sense on its own.\n\nI believe that the answer to all of these is \"it's how the files have evolved over time and there hasn't been a need to change anything.\"\n\n---\n\nWith the nanobind transition, I need to have nanobind variants of these files. I have the following options:\n\n1. Introduce nanobind variants of the files with different names. This allows me to transition `_backend_agg`, `_image`, and `_path` separately.\n2. Keep the files the same name and have giant `#ifdef USE_NANOBIND_IMPL` / `#ifdef USE_PYBIND11_IMPL` blocks.\n3. Keep the files the same name and move everything over in one PR.\n\nI used the first option in my [nanobind-experiment branch](https://github.com/iccir/matplotlib/tree/nanobind-experiment/src). However, I'm not sure if the original grouping of these files still makes sense.\n\nAre there any strong opinions? Should we re-organize these in a different way?","author":{"url":"https://github.com/iccir","@type":"Person","name":"iccir"},"datePublished":"2026-11-11T18:17:54Z","url":"https://github.com/matplotlib/matplotlib/issues/32589"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2f00347d-ec8e-fbe4-7978-73fdfd72eafd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD5B6:1FDCFC:1039C67:157BA22:6B064EDC
html-safe-noncea69faee8bb14c58b10339376f5d19e771f1e09c571e229de6714f06de0badd6d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUI2OjFGRENGQzoxMDM5QzY3OjE1N0JBMjI6NkIwNjRFREMiLCJ2aXNpdG9yX2lkIjoiOTIxMzM4OTcyMjkwNTYyODM4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac51b4016fab6e101c4564b45570ea7748faede930976dcdab36aa63e9fcd5f0d4
hovercard-subject-tagissue:6334602767
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/32589/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c37c3e9959d89c545519ad82486575d24145f574d56b47e14d2318b8dede1073/matplotlib/matplotlib/issues/32589
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c37c3e9959d89c545519ad82486575d24145f574d56b47e14d2318b8dede1073/matplotlib/matplotlib/issues/32589
og:image:altWe currently have 4 files in /src which are used by the _backend_agg, _image, and _path modules: _backend_agg_basic_types.h path_converters.h py_adaptors.h py_converters.h Additionally, we have py_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiccir
hostnamegithub.com
expected-hostnamegithub.com
None772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef1f9a08f7c769a37f1dfc18ad43d463c222a7eea
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/32589#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32589
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32589
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/32589
Reloadhttps://github.com/matplotlib/matplotlib/issues/32589
Reloadhttps://github.com/matplotlib/matplotlib/issues/32589
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests430 (430)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32589
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32589
MNT: Should we re-organize shared agg files in /src ?https://github.com/matplotlib/matplotlib/issues/32589#top
Maintenancehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Maintenance%22
https://github.com/iccir
iccirhttps://github.com/iccir
on Nov 11, 2026https://github.com/matplotlib/matplotlib/issues/32589#issue-6334602767
_backend_agg_basic_types.hhttps://github.com/matplotlib/matplotlib/blob/main/src/_backend_agg_basic_types.h
path_converters.hhttps://github.com/matplotlib/matplotlib/blob/main/src/path_converters.h
py_adaptors.hhttps://github.com/matplotlib/matplotlib/blob/main/src/py_adaptors.h
py_converters.hhttps://github.com/matplotlib/matplotlib/blob/main/src/py_converters.h
py_converters.cpphttps://github.com/matplotlib/matplotlib/blob/main/src/py_converters.cpp
https://private-user-images.githubusercontent.com/1097294/702615935-16c0984b-4360-4dac-b4a4-ec54deb7c205.svg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzU4MTYsIm5iZiI6MTc5NTU3NTUxNiwicGF0aCI6Ii8xMDk3Mjk0LzcwMjYxNTkzNS0xNmMwOTg0Yi00MzYwLTRkYWMtYjRhNC1lYzU0ZGViN2MyMDUuc3ZnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjVUMDI1ODM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTk5YTJjNmNjYTczNWNkYmE5YzA5ZTFkMGYyZTYyOWM0ZjBkZjcwYmZhNjBmNDUxN2FiYzA0ZDIzYjIxMjhhZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGc3ZnJTJCeG1sIn0.m6W-W6Z3xU2n_KmLocETwif-7r0lPNlyFZNzOiDSya0
nanobind-experiment branchhttps://github.com/iccir/matplotlib/tree/nanobind-experiment/src
iccirhttps://github.com/iccir
Maintenancehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Maintenance%22
on Nov 11, 2026https://github.com/matplotlib/matplotlib/issues/32589#event-35829873008
iccirhttps://github.com/iccir
nanobindhttps://github.com/orgs/matplotlib/projects/12
on Nov 11, 2026https://github.com/matplotlib/matplotlib/issues/32589#event-35829875717
github-project-automationhttps://github.com/apps/github-project-automation
nanobindhttps://github.com/orgs/matplotlib/projects/12
on Nov 11, 2026https://github.com/matplotlib/matplotlib/issues/32589
iccirhttps://github.com/iccir
nanobindhttps://github.com/orgs/matplotlib/projects/12
on Nov 11, 2026https://github.com/matplotlib/matplotlib/issues/32589
https://github.com/iccir
iccirhttps://github.com/iccir
on Nov 11, 2026https://github.com/matplotlib/matplotlib/issues/32589#issuecomment-6804280992
https://github.com/iccir
iccirhttps://github.com/iccir
on Nov 13, 2026https://github.com/matplotlib/matplotlib/issues/32589#issuecomment-6842976484
@ayshihhttps://github.com/ayshih
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/32589
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32589
Maintenancehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Maintenance%22
nanobindhttps://github.com/orgs/matplotlib/projects/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.