Python: Is it possible to create/import/export .py files into the calculator - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Python: Is it possible to create/import/export .py files into the calculator (/thread-17625.html) |
Python: Is it possible to create/import/export .py files into the calculator - marethyu - 10-26-2021 11:49 PM title. RE: Python: Is it possible to create/import/export .py files into the calculator - toml_12953 - 10-27-2021 12:45 AM (10-26-2021 11:49 PM)marethyu Wrote: title. Yes. What I do is to connect the calculator via USB, open the Connectivity Kit (CK), Start a new program in the kit (right click on the word program on the left side and click new) An entry box will appear on the right with a Main tab. Copy and paste the Python code from your text editor into the Main box on the right.. Insert the following line before the first line of your program: Code: #PYTHON name Now, after the last line of your code add this: Code: #end Click the double floppy icon at the top of the CK to save the program to the physical calculator. Now you can run the Python program the same way as you run any other Prime program. RE: Python: Is it possible to create/import/export .py files into the calculator - marethyu - 10-27-2021 03:34 AM I see. Thanks for the reply! By the way, where can I find extensive documentation for HP Prime Python? I want to know more about some built-in modules like `graphics` `hpprime`, and `cas`. RE: Python: Is it possible to create/import/export .py files into the calculator - Solver - 10-30-2021 03:29 AM (10-27-2021 03:34 AM)marethyu Wrote: I see. Thanks for the reply! Actually, I think it has the same stuff as standard MicroPython so whatever you learn with that should carry over, or at least mostly carry over if I'm not much mistaken. RE: Python: Is it possible to create/import/export .py files into the calculator - floppy - 10-30-2021 11:35 AM Matplolib and other libraries are supported? That would be very interesting (I have no prime) RE: Python: Is it possible to create/import/export .py files into the calculator - toml_12953 - 10-30-2021 03:58 PM (10-30-2021 11:35 AM)floppy Wrote: Matplolib and other libraries are supported? It sure would be interesting but I haven't seen a way to add pre-compiled libraries. If there is a way, I wish someone would let us know. That would make it so much more useful! |