Title: Can I run a Python file in C++ function with PythonQt · MeVisLab/pythonqt · Discussion #213 · GitHub
Open Graph Title: Can I run a Python file in C++ function with PythonQt · MeVisLab/pythonqt · Discussion #213
X Title: Can I run a Python file in C++ function with PythonQt · MeVisLab/pythonqt · Discussion #213
Description: Can I run a Python file in C++ function with PythonQt
Open Graph Description: Can I run python file in c++ function with PythonQt, my python file like this test.txt
X Description: Can I run python file in c++ function with PythonQt, my python file like this test.txt
Opengraph URL: https://github.com/MeVisLab/pythonqt/discussions/213
X: @github
Domain: Github.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Can I run a Python file in C++ function with PythonQt","text":"\u003cp dir=\"auto\"\u003eCan I run python file in c++ function with PythonQt, my python file like this\u003cbr\u003e\n\u003ca href=\"https://github.com/MeVisLab/pythonqt/files/15062140/test.txt\"\u003etest.txt\u003c/a\u003e\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eSorry I didn't answer earlier: You \u003cem\u003ecan\u003c/em\u003e run a Python file with PythonQt, but you don't need PythonQt for that.\u003cbr\u003e\nYou can initialize a normal Python interpreter in your code and tell it to compile and execute your code. PythonQt doesn't make it that much easier to do that. What PythonQt is good at is making your own C++ objects available in Python. What it is very good at is making QObjects (the standard interface object of the Qt framework) available in Python.\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/MeVisLab/pythonqt/discussions/213#discussioncomment-9342591"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:8b414098-66dc-2d88-6ae7-da51675b7d58 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | D18A:3D83D7:29262E8:375EEE8:6A65152F |
| html-safe-nonce | 6ba8b42d1f0b6ce0ac475014a1d1ff896fdd58b86fc2a349fc41b73f3c72a668 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMThBOjNEODNENzoyOTI2MkU4OjM3NUVFRTg6NkE2NTE1MkYiLCJ2aXNpdG9yX2lkIjoiMTIyMTk0MjY1MTkyNjAwODc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c8abedadb8b1d141ed16729b042d881e1cef4baf3ea759ee058c92d21a6678ad |
| hovercard-subject-tag | discussion:6623538 |
| github-keyboard-shortcuts | repository,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/Voltron::DiscussionsFragmentsController/show/MeVisLab/pythonqt/213/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/eb96689eb0b0edff98df51550800660c10983ee638026a016acd84f06937b4e6/MeVisLab/pythonqt/discussions/213 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb96689eb0b0edff98df51550800660c10983ee638026a016acd84f06937b4e6/MeVisLab/pythonqt/discussions/213 |
| og:image:alt | Can I run python file in c++ function with PythonQt, my python file like this test.txt |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/MeVisLab/pythonqt git https://github.com/MeVisLab/pythonqt.git |
| octolytics-dimension-user_id | 15028021 |
| octolytics-dimension-user_login | MeVisLab |
| octolytics-dimension-repository_id | 193056137 |
| octolytics-dimension-repository_nwo | MeVisLab/pythonqt |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193056137 |
| octolytics-dimension-repository_network_root_nwo | MeVisLab/pythonqt |
| 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 | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width