René's URL Explorer Experiment


Title: Unable to compile examples on MacOS · Issue #361 · lava/matplotlib-cpp · GitHub

Open Graph Title: Unable to compile examples on MacOS · Issue #361 · lava/matplotlib-cpp

X Title: Unable to compile examples on MacOS · Issue #361 · lava/matplotlib-cpp

Description: fatal error: 'Python/Python.h' file not found I tried to add the file to my current project to plot some graph but couldn't make it to work. Please help me in this matter. There are 2 files matplotlibcpp.cpp and matplotlibcpp.h I downloa...

Open Graph Description: fatal error: 'Python/Python.h' file not found I tried to add the file to my current project to plot some graph but couldn't make it to work. Please help me in this matter. There are 2 files matplot...

X Description: fatal error: 'Python/Python.h' file not found I tried to add the file to my current project to plot some graph but couldn't make it to work. Please help me in this matter. There are 2 f...

Opengraph URL: https://github.com/lava/matplotlib-cpp/issues/361

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to compile examples on MacOS","articleBody":"### fatal error: 'Python/Python.h' file not found\r\nI tried to add the file to my current project to plot some graph but couldn't make it to work. **Please help me in this matter.**\r\n\r\nThere are 2 files `matplotlibcpp.cpp` and `matplotlibcpp.h`\r\n\r\nI downloaded the `matplotlibcpp.h` file from this repo\r\n\r\nHere is the example file `matplotlibcpp.cpp` \r\n```cpp\r\n#include \"matplotlibcpp.h\"\r\n#include \u003ccmath\u003e\r\n\r\nnamespace plt = matplotlibcpp;\r\n\r\nint main()\r\n{\r\n    // Prepare data.\r\n    int n = 5000;\r\n    std::vector\u003cdouble\u003e x(n), y(n), z(n), w(n,2);\r\n    for(int i=0; i\u003cn; ++i) {\r\n        x.at(i) = i*i;\r\n        y.at(i) = sin(2*M_PI*i/360.0);\r\n        z.at(i) = log(i);\r\n    }\r\n\r\n    // Set the size of output image to 1200x780 pixels\r\n    plt::figure_size(1200, 780);\r\n    // Plot line from given x and y data. Color is selected automatically.\r\n    plt::plot(x, y);\r\n    // Plot a red dashed line from given x and y data.\r\n    plt::plot(x, w,\"r--\");\r\n    // Plot a line whose name will show up as \"log(x)\" in the legend.\r\n    plt::named_plot(\"log(x)\", x, z);\r\n    // Set x-axis to interval [0,1000000]\r\n    plt::xlim(0, 1000*1000);\r\n    // Add graph title\r\n    plt::title(\"Sample figure\");\r\n    // Enable legend.\r\n    plt::legend();\r\n    // Save the image (file format is determined by the extension)\r\n    plt::save(\"./basic.png\");\r\n}\r\n```\r\n\r\nI compile using \r\n```bash\r\ng++ matplotlibcpp.cpp -std=c++11 -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -lpython3.12\r\n```\r\nand got this error\r\n```bash\r\nIn file included from matplotlibcpp.cpp:1:\r\n./matplotlibcpp.h:5:10: fatal error: 'Python/Python.h' file not found\r\n#include \u003cPython/Python.h\u003e\r\n         ^~~~~~~~~~~~~~~~~\r\n1 error generated.\r\n```\r\n","author":{"url":"https://github.com/ngquyduc","@type":"Person","name":"ngquyduc"},"datePublished":"2024-06-05T07:12:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/361/matplotlib-cpp/issues/361"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:27d16908-1edf-b460-437a-ff7199fb348a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE81A:162063:27D1111:374A129:6977A9DD
html-safe-nonce9caa0bc5fbe44ce6a979f52eee733930837d6e9bfbf83acbf4ad39eea79fcc41
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODFBOjE2MjA2MzoyN0QxMTExOjM3NEExMjk6Njk3N0E5REQiLCJ2aXNpdG9yX2lkIjoiNDExMjM5NTMxMTgyNzYyNjQ2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd09a22c456a59047b008ccf72bba7cc9dea5605cc37a69b796228eda23e17190
hovercard-subject-tagissue:2335089116
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/lava/matplotlib-cpp/361/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9956a2f60c86560840f2bad78c214a8d54134255aec34de3971e093425c11ac5/lava/matplotlib-cpp/issues/361
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9956a2f60c86560840f2bad78c214a8d54134255aec34de3971e093425c11ac5/lava/matplotlib-cpp/issues/361
og:image:altfatal error: 'Python/Python.h' file not found I tried to add the file to my current project to plot some graph but couldn't make it to work. Please help me in this matter. There are 2 files matplot...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamengquyduc
hostnamegithub.com
expected-hostnamegithub.com
Nonee8b91803a5fc7ac066710509c57c636dab6ed4620bd9213b470a4617c79989c9
turbo-cache-controlno-preview
go-importgithub.com/lava/matplotlib-cpp git https://github.com/lava/matplotlib-cpp.git
octolytics-dimension-user_id51410
octolytics-dimension-user_loginlava
octolytics-dimension-repository_id24936365
octolytics-dimension-repository_nwolava/matplotlib-cpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24936365
octolytics-dimension-repository_network_root_nwolava/matplotlib-cpp
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
release9b4562e3c5c60b38349a7d80ec8e160c11fe84b6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/lava/matplotlib-cpp/issues/361#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Flava%2Fmatplotlib-cpp%2Fissues%2F361
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Flava%2Fmatplotlib-cpp%2Fissues%2F361
Sign up https://patch-diff.githubusercontent.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=lava%2Fmatplotlib-cpp
Reloadhttps://patch-diff.githubusercontent.com/lava/matplotlib-cpp/issues/361
Reloadhttps://patch-diff.githubusercontent.com/lava/matplotlib-cpp/issues/361
Reloadhttps://patch-diff.githubusercontent.com/lava/matplotlib-cpp/issues/361
lava https://patch-diff.githubusercontent.com/lava
matplotlib-cpphttps://patch-diff.githubusercontent.com/lava/matplotlib-cpp
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Flava%2Fmatplotlib-cpp
Fork 1.2k https://patch-diff.githubusercontent.com/login?return_to=%2Flava%2Fmatplotlib-cpp
Star 4.7k https://patch-diff.githubusercontent.com/login?return_to=%2Flava%2Fmatplotlib-cpp
Code https://patch-diff.githubusercontent.com/lava/matplotlib-cpp
Issues 191 https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/issues
Pull requests 32 https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/pulls
Actions https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/actions
Projects 0 https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/projects
Wiki https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/wiki
Security 0 https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/security
Insights https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/pulse
Code https://patch-diff.githubusercontent.com/lava/matplotlib-cpp
Issues https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/issues
Pull requests https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/pulls
Actions https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/actions
Projects https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/projects
Wiki https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/wiki
Security https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/security
Insights https://patch-diff.githubusercontent.com/lava/matplotlib-cpp/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/lava/matplotlib-cpp/issues/361
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/lava/matplotlib-cpp/issues/361
Unable to compile examples on MacOShttps://patch-diff.githubusercontent.com/lava/matplotlib-cpp/issues/361#top
https://github.com/ngquyduc
https://github.com/ngquyduc
ngquyduchttps://github.com/ngquyduc
on Jun 5, 2024https://github.com/lava/matplotlib-cpp/issues/361#issue-2335089116
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

Viewport: width=device-width


URLs of crawlers that visited me.