HP Forums

Full Version: how to use HP PRIME commands in a python program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
How can I use HP PRIME commands in a python program? How do I use, for example, the PIXON_P command in a python program?
Thanks a lot, Roberto.
(05-04-2021 04:24 PM)robmio Wrote: [ -> ]Hello,
How can I use HP PRIME commands in a python program? How do I use, for example, the PIXON_P command in a python program?
Thanks a lot, Roberto.

eval("PIXON_P ...")

replace ... with your parameters.
You don't need to use the HPPL version, though. Python has the graphics commands natively.

Just use
Code:
from hpprime import *

then use pixon or pixon_c in your program. It's a lot faster to do it that way.
Thanks a lot, Roberto
I ask another neophyte question: after writing a program with PYTHON, how can I call it up and make it work, in HOME or CAS screen?
Reference URL's