Sharing Variables between Python and HPppl
|
05-18-2022, 01:21 AM
(This post was last modified: 05-18-2022 01:44 AM by roadrunner.)
Post: #7
|
|||
|
|||
RE: Sharing Variables between Python and HPppl
Sorry, i did not realize ans was a string (even though your first post states it very clearly). That makes it a little more tricky, but:
from hpprime import * eval("primevar:=\"" + ans + "\"") should give you a home variable called primevar that contains whatever string is stored in ans. Then you can run your ppl program with: eval("pplprogram(primevar)") -road |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Sharing Variables between Python and HPppl - matalog - 05-17-2022, 01:33 PM
RE: Sharing Variables between Python and HPppl - roadrunner - 05-17-2022, 02:49 PM
RE: Sharing Variables between Python and HPppl - matalog - 05-17-2022, 03:26 PM
RE: Sharing Variables between Python and HPppl - roadrunner - 05-17-2022, 03:45 PM
RE: Sharing Variables between Python and HPppl - roadrunner - 05-17-2022, 03:52 PM
RE: Sharing Variables between Python and HPppl - matalog - 05-17-2022, 11:34 PM
RE: Sharing Variables between Python and HPppl - roadrunner - 05-18-2022 01:21 AM
RE: Sharing Variables between Python and HPppl - Guenter Schink - 05-19-2022, 03:43 PM
RE: Sharing Variables between Python and HPppl - Guenter Schink - 05-19-2022, 07:40 PM
RE: Sharing Variables between Python and HPppl - Ioncubekh - 10-20-2022, 06:57 AM
|
User(s) browsing this thread: 1 Guest(s)