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.
How to upload file to Pythonista?
-
My first time to use this app and I'd like to upload files to test my program. Please can you help? Thanks
-
To import a file into Pythonista, you can "share"/"open in" it from another app. In the share sheet, select the "Run Pythonista Script" action in the bottom row. (If you don't see it, you might have it disabled. To fix that, scroll all the way to the right, tap on "More", and enable Pythonista in that list.) Now you should get a small Pythonista window with a few icons. Tap on "Import File", this will copy the file into Pythonista.
Note that you cannot import Python scripts this way (because of Apple's restrictions on importing code). If you want to import Python code from somewhere else, you can copy and paste it into Pythonista, or put it in a zip file and import that.
-
Many thanks for your help and guidance. Really appreciate the help.
-
@dgelessus said:
Note that you cannot import Python scripts this way (because of Apple's restrictions on importing code). If you want to import Python code from somewhere else, you can copy and paste it into Pythonista, or put it in a zip file and import that.
but most wanted: import Python code from somewhere else
since Pyhonista doesn't provide this function by default, the first thing after installing Pythonista is to add a script to do this. just search in this forum and you can easily find code to import Python code from somewhere else.
I heard that Pythonista once provided this feature by default, but Apple forced it to remove it. what a pity