Post Reply 
Numworks Python on Android: How can Python scripts be saved
11-27-2021, 09:54 PM
Post: #1
Numworks Python on Android: How can Python scripts be saved
Just trying out Python on Numworks.
At first scripts were not saved, but changing Android permissions to allow storage seemed to help.
I made a few edits which were retained OK.
But now, the script has disappeared (just the examples remain).

Is there a recommended procedure to save the scripts?

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
11-28-2021, 06:44 PM
Post: #2
RE: Numworks Python on Android: How can Python scripts be saved
To the best of my knowledge, there is no way to directly save the Scripts in the emulator on Android. Or in the downloaded web based emulator. But if you run the emulator on their web site, it does give you the ability to save a "session" to your web account.

I did some testing on my Android Tablet. If you run the Emulator and then NEVER exit it or close it, then the scripts will remain. But if you mistakenly close it or reboot your device, then when you run the app again it will start fresh with all your scripts gone.

Hopefully they will at the least add the ability to save sessions on the Android App and the downloadable emulator. Better would be to have the ability to export and import the scripts so that they could be transferred directly to the real calculator. Unfortunately, there is still NO way to export/import scripts to the emulator. And that is the reason I rarely use it.

It's crazy that a person cannot create something on the emulator, export it and then transfer it to the actual calculator. I can't be the only person who thinks this would be a needed feature.

73
Bill WD9EQD
Smithville, NJ
Find all posts by this user
Quote this message in a reply
12-01-2021, 11:26 PM (This post was last modified: 12-01-2021 11:33 PM by StephenG1CMZ.)
Post: #3
RE: Numworks Python on Android: How can Python scripts be saved
In the absence of a way to save the scripts, I find a reasonable workaround is to keep the source code on the HP Prime App on the Android, and cut and paste it into the Numworks App on the Android for execution.

(The main downside is that the HP Prime App only works online for me, so some other editor might be better).

A quick try suggests the Numworks executes the Savage benchmark about twice as fast as the Python-in-CAS syntax on the HP Prime, both running on the same Android (TBC).

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
08-25-2022, 06:30 PM (This post was last modified: 08-25-2022 06:48 PM by StephenG1CMZ.)
Post: #4
RE: Numworks Python on Android: How can Python scripts be saved
That approach worked.

On a newer Android, Samsung notes and messages yield space characters that will not compile.
But saving the note as a text file, then pasting that in works OK.

But although shift/paste and shift/clear work OK, shift/copy doesn't seem to do anything...
Actually you have to select the text you want to copy first.

Is there an easier way to copy the program than selecting every character, which seems very cumbersome, when you need to save?

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)