Title: Question: on using a remote process for the Python interpreter · Issue #6 · clj-python/libpython-clj · GitHub
Open Graph Title: Question: on using a remote process for the Python interpreter · Issue #6 · clj-python/libpython-clj
X Title: Question: on using a remote process for the Python interpreter · Issue #6 · clj-python/libpython-clj
Description: Hello Chris! I really enjoyed listening to Scicloj meeting #4. You're doing interesting work here. I feel that you're setting the Clojure community up for an interop story with Python that's similar to how we're able to make use of Java....
Open Graph Description: Hello Chris! I really enjoyed listening to Scicloj meeting #4. You're doing interesting work here. I feel that you're setting the Clojure community up for an interop story with Python that's simila...
X Description: Hello Chris! I really enjoyed listening to Scicloj meeting #4. You're doing interesting work here. I feel that you're setting the Clojure community up for an interop story with Python that&...
Opengraph URL: https://github.com/clj-python/libpython-clj/issues/6
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: on using a remote process for the Python interpreter","articleBody":"Hello Chris!\r\n\r\nI really enjoyed listening to [Scicloj meeting #4][2]. You're doing interesting work here. I feel that you're setting the Clojure community up for an interop story with Python that's similar to how we're able to make use of Java.\r\n\r\nI have a question, if you don't mind. Per now, I can use my own interpreter of choice like this:\r\n\r\n```clojure\r\n(require '[libpython-clj.python :as py]\r\n '[libpython-clj.jna.base])\r\n\r\n(defn get-python [_]\r\n \"/home/teodorlu/opt/anaconda3/bin/python\")\r\n\r\n(alter-var-root #'libpython-clj.jna.base/*python-library* #'get-python)\r\n```\r\n\r\nI would like to use `libpython-clj` to interface with a running Python process that's not started from within the Clojure process, but \"on its own terms\". A possible process could look like this:\r\n\r\n1. Make some changes to the remote Python interpreter allow `libpython-clj` to ... do what it needs to do.\r\n2. Start a Clojure process\r\n3. Point the Clojure process to the running Python process\r\n4. Evaluate Python code in that context.\r\n\r\nThe reason why I can't just start a new process, is that the Python process is started by [another application][1], and I need access to the application state, as the user interacts with the state.\r\n\r\n- Is this in scope for `libpython-clj`?\r\n- Do you think it's feasible?\r\n\r\nI spent some time reading the `libpython-clj` source code, but I must admit that this is above my level, hence I'm asking.\r\n\r\nThanks again for your work, and have a nice day!\r\nTeodor\r\n\r\n[1]: https://en.wikipedia.org/wiki/Abaqus\r\n[2]: https://www.youtube.com/watch?v=ajDiGS73i2o","author":{"url":"https://github.com/teodorlu","@type":"Person","name":"teodorlu"},"datePublished":"2019-09-08T14:29:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/6/libpython-clj/issues/6"}
| 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:a0b4ccc8-0b65-0d08-92b9-d112bdb274a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A270:32A646:C40CAD:10E1076:6A61A45C |
| html-safe-nonce | 513f95bc3e9b05af278794ff2c625f90f4b2a608cefe9b0f466a42f06bf0e36c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjcwOjMyQTY0NjpDNDBDQUQ6MTBFMTA3Njo2QTYxQTQ1QyIsInZpc2l0b3JfaWQiOiIxMzA1NDkzMzA4OTc5NjUxNjc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 889edf74a4892d0a98f3fbd6cc3ef365bda4e4ff226cd4a73810ad8c1b1be98f |
| hovercard-subject-tag | issue:490761297 |
| 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/clj-python/libpython-clj/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2331ec017a96149aeda2c77e00dfa0c70a6c3ff2df59beec224bd43961760cd5/clj-python/libpython-clj/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2331ec017a96149aeda2c77e00dfa0c70a6c3ff2df59beec224bd43961760cd5/clj-python/libpython-clj/issues/6 |
| og:image:alt | Hello Chris! I really enjoyed listening to Scicloj meeting #4. You're doing interesting work here. I feel that you're setting the Clojure community up for an interop story with Python that's simila... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | teodorlu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/clj-python/libpython-clj git https://github.com/clj-python/libpython-clj.git |
| octolytics-dimension-user_id | 60827878 |
| octolytics-dimension-user_login | clj-python |
| octolytics-dimension-repository_id | 187095617 |
| octolytics-dimension-repository_nwo | clj-python/libpython-clj |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 187095617 |
| octolytics-dimension-repository_network_root_nwo | clj-python/libpython-clj |
| 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 | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width