Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Newbie Problem With Where Pythonista Auto-Saves Own .py Files
-
I am an absolute newbie to Python on my iMac, and to Pythonista on my iPad. {So far, Pythonista seems a bit more user-friendly for me, at my current level of knowledge.} My learning is going well, but slowly. The following are some initial questions w.r.t. Pythonista in particular:
I have a few test .py programs I've created with Pythonista. I appreciate that they get saved automatically, but I have no idea where they’re saved to. I created a 'work' folder in my iPad, but Pythonista doesn't appear to save any of my work to it. My ‘work’ folder is always empty.
Is there a reference someone could give me, please, pointing to any Pythonista (or Python) documentation that explains where my .py files are getting stored to automatically; plus, how might I be able to change the auto-save location to my iPad’s ‘work’ folder?
I have similar questions about IDE, and some other newbie questions, but they’ll have to be for another day.Thank you … Phlurim
-
@Phlurim the Pythonista files (scripts or other) are saved in the internal file system of Pythonista, not visible in the Files app.
But you can, in Pythonista, access to any folder that you have created, on your IPad or on iCloud Drive and edit there a .py file which be saved automatically if you update it in Pythonista.
For that, display the left Pythonista files system and tap external files/Open/folder/yours -
Thank you. I’ll definitely try this.
-
@Phlurim There is a limitation if you want to run a Pythonista script through an Home Screen icon. In this case, your icon has to start a Shortcut (from the Shortcuts standard Apple app) with only one action to run the Pythonista script via its URL scheme. But this scheme only allows to run a Pythonista local or iCloud file, not any script from anywhere. Hoping I've been clear enough.
-
Thanks. I think I've correctly captured all of what you said. But just to be sure, I want to redo a wee bit more parsing from a logic, syntax & intended context perspective, in order to fully grasp the issue (am I making any sense, or overthinking it?!?)
My previous extensive coding experience goes back more than 5 decades. I wrote, compiled, debugged, and executed advanced Fortran code on DEC/UNIX, IBM, and UNIVAC machines. I've learned over the past 3-4 months, that the rudimentary computer coding concepts are still in part of my DNA - sorta like never forgetting how to swim or ride a bike!
Python especially blows me away with certain concepts such as IDEs that allow me to freely copy, incorporate, and execute snippets of other programmers' code (even if I sometimes don't always understand everything in their snippets!) This aspect of Python is an exremely valuable aid for newbies such as me who learn faster and more effectively by trying and doing ('trial-&-error'!) Thanks again for your prompt response and helpful comments. -
@Phlurim said
My previous extensive coding experience goes back more than 5 decades. I wrote, compiled, debugged, and executed advanced Fortran code on DEC/UNIX, IBM, and UNIVAC machines
I also have programmed Fortran in 1972... Ice Age as my grandchildren say 😭
-
Would like to ask a couple final questions, if I may. I don't see any 'save to file' menu item in Pythonista. Also, I feel I'm too rudimentary right now to have my code files accessible through protocols like integrated collaboration. Perhaps later, when/if I might eventually achieve Python competancy.
(1) Which Pythonista links, or commands, should I click on to manually save my personal code files to my own iPad's 'work' folder, or alternatively to a peripheral thumbdrive/Flash drives?
(2) After that, will Pythonista still continue to auto-save my code files to its own default auto-save folder?Cheers ... Phlurim
-
@Phlurim Pythonista continuously and automatically saves the edited script file, wherever it is stored, in Pythonista local folder or in your own iPad folder or in an iCloud Drive folder or on an usb flash Drive etc...
If you work (and edit scripts) in the Pythonista local folders, you can always copy your code file where you want by using split screen with Pythonista tree at one side and Files app at the other side, and drag and drop the wanted file.
-
Another recommended:. Install stash which let's you run a bash-like shell. In some cases, moving or copying files using the shell can be easier than using the GUI. It also gives you access to some features like wget and tar and zip that can make downloading code easier, or packaging up whole folders before copying to Files.
-
This post is deleted!