Title: [Doc]: Unclear how to compile `c_internals` in code space · Issue #29524 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Unclear how to compile `c_internals` in code space · Issue #29524 · matplotlib/matplotlib
X Title: [Doc]: Unclear how to compile `c_internals` in code space · Issue #29524 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/devdocs/devel/development_setup.html#create-a-dedicated-environment Problem Actually, I run into a little bit into trouble to get the c_internals compiled. After reading the docs, it sounds like ...
Open Graph Description: Documentation Link https://matplotlib.org/devdocs/devel/development_setup.html#create-a-dedicated-environment Problem Actually, I run into a little bit into trouble to get the c_internals compiled....
X Description: Documentation Link https://matplotlib.org/devdocs/devel/development_setup.html#create-a-dedicated-environment Problem Actually, I run into a little bit into trouble to get the c_internals compiled....
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29524
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Unclear how to compile `c_internals` in code space","articleBody":"### Documentation Link\n\nhttps://matplotlib.org/devdocs/devel/development_setup.html#create-a-dedicated-environment\n\n### Problem\n\nActually, I run into a little bit into trouble to get the `c_internals` compiled. After reading the docs, it sounds like that the _Codespace_ environment is set up in way that out of the box it can be used. So I am wondering if there can be:\n\n\n1. provide further instructions how to compile the `c_internals` \n2. or update the `.devcontainer/setup.sh`\n\nI know about this section [create-a-dedicated-environment](https://matplotlib.org/devdocs/devel/development_setup.html#create-a-dedicated-environment), but I haven't managed to get it running in _Codespace_. \n\n\u003e Other users might face similar struggles. If there's an option in the shell to autocompile during the CodeSpace setup, it would make this environment very convenient.\n\nActually, I was planning to address this blind spot in the coverage rate of the **PR** #29520 , but I wasn't able to get `pytest` running.\n\n\n\n\n```terminal\nERROR lib/mpl_toolkits/axes_grid1/tests - ImportError: cannot import name '_c_internal_utils' from 'matplotlib' (/workspaces/matplotlib/lib/matplotlib/__init__.py)\nERROR lib/mpl_toolkits/axisartist/tests - ImportError: cannot import name '_c_internal_utils' from 'matplotlib' (/workspaces/matplotlib/lib/matplotlib/__init__.py)\nERROR lib/mpl_toolkits/mplot3d/tests - ImportError: cannot import name '_c_internal_utils' from 'matplotlib' (/workspaces/matplotlib/lib/matplotlib/__init__.py)\n```\n\nFurther Sources:\n\n* https://discourse.matplotlib.org/t/cannot-import-name-c-internal-utils-from-matplotlib/22644\n* https://github.com/matplotlib/matplotlib/pull/29520/files#annotation_31349915228\n\n### Suggested improvement\n\n* Include procedure for compiling `c_internal` into [.devcontainer/setup.sh](https://github.com/matplotlib/matplotlib/blob/main/.devcontainer/setup.sh)\n* Provide some details about how to `gcc` via conda.","author":{"url":"https://github.com/Anselmoo","@type":"Person","name":"Anselmoo"},"datePublished":"2025-01-26T08:55:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/29524/matplotlib/issues/29524"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e16ab75d-5633-2f7a-dbe6-a7397cf4143c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AC2:C1E1E:129C2F0:18E6719:6A52A5FC |
| html-safe-nonce | e4add352dd70c71a8b24f35be10cccea2704c3fa3daaa5b74d28b61ad954ea77 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUMyOkMxRTFFOjEyOUMyRjA6MThFNjcxOTo2QTUyQTVGQyIsInZpc2l0b3JfaWQiOiI1MDUxOTAzMTA4NDQxMDg5NTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 90146e4dc954613bbd3f720609ddbe987e4623848cabdf1229f66295d2fdf5c9 |
| hovercard-subject-tag | issue:2811407107 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/29524/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8df0614d1ba17fcc1558567fdeb5a1881738fe50867f27ac7792c372091d3183/matplotlib/matplotlib/issues/29524 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8df0614d1ba17fcc1558567fdeb5a1881738fe50867f27ac7792c372091d3183/matplotlib/matplotlib/issues/29524 |
| og:image:alt | Documentation Link https://matplotlib.org/devdocs/devel/development_setup.html#create-a-dedicated-environment Problem Actually, I run into a little bit into trouble to get the c_internals compiled.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Anselmoo |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width