HP Forums

Full Version: HP Prime Python reference guide and tutorial?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am looking for an HP Prime Python tutorial and / or reference guide (for the python implementation incorporated in the CAS).

Would you have any pointers please?

Thank you!
Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
(08-28-2020 04:01 PM)rawi Wrote: [ -> ]Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
CAS accepts some Python commands. The entire language isn't in there but you can write some CAS programs that look a lot like Python.
(08-28-2020 04:06 PM)toml_12953 Wrote: [ -> ]
(08-28-2020 04:01 PM)rawi Wrote: [ -> ]Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
CAS accepts some Python commands. The entire language isn't in there but you can write some CAS programs that look a lot like Python.

Thank you, that is exactly what I am talking about. Where is this documented? What commands can be used?
Well Python-like syntax is understood by the CAS, probably because XCas understands it also.

But it is limited, see Parisse’s answer in this thread: https://www.hpmuseum.org/forum/thread-94...l#pid83159

I don’t think there is a reference guide for Python/CAS programming.
Try yourself: create a CAS program and use Python syntax, if you’re not trying to import Python modules, it will work fine.
(08-28-2020 04:01 PM)rawi Wrote: [ -> ]Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
This is not entirely true. There is an app on the latest update, that includes something like MicroPython, and does run a version.

The question is still valid, as far as I can tell. But there does't seem to be any documentation. I can't even find documentation, anywhere, that even tells how to use the Python App. HP sure has slipped with regards to providing documentation.
(01-04-2024 05:32 PM)MikeSD Wrote: [ -> ]
(08-28-2020 04:01 PM)rawi Wrote: [ -> ]Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
This is not entirely true. There is an app on the latest update, that includes something like MicroPython, and does run a version.

The question is still valid, as far as I can tell. But there does't seem to be any documentation. I can't even find documentation, anywhere, that even tells how to use the Python App. HP sure has slipped with regards to providing documentation.

That app "on the latest update", is available on the actual HP Prime, but not on the latest update of the Android App.

Last year's mention of a possible update (to the 2021 Android version) have yet to happen.

There have been several tips on using Python in this forum, but little formal documentation.
The Python-in-CAS syntax may be described in XCAS documentation.
Reference URL's