Hi,
First time user questions: I have several Python projects currently in cloud drives. Is there a way to point to them for editing/running, or importing?
Thanks!
Forum Archive
Use existing scripts from outside Pythonista
Open them in Safari or another app, copy the text of the script, paste that text into a new Python file in Pythonista.
Or... Use DropboxFilePicker at https://github.com/Pythonista-Tools
You can also use the app extension to import files into the main app
@lukaskollmer, how?
Open a Python file in another iOS app (Safari?) and then click the Share (box with arrow pointing upwards) and then select a Pythonista script that has code like:
import appex
def main():
if appex.is_running_extension():
for file_path in appex.get_file_paths():
print(file_path)
See:
* http://omz-software.com/pythonista/docs/ios/appex.html
* https://github.com/cclauss/Pythonista-and-Working-Copy
* https://github.com/cclauss/Ten-lines-or-less/blob/master/read_zipfile_from_github.py
You can use my Open in Pythonista solution.
Note, this extension script depends on *libs package.
Thank you very much for the responses. I was hoping for a more native method. However, I'll give it a try when I reach my destination. When I tried it last with cut/paste method, my indentation were gone. Hopefully the browser method would preseve it.
Thanks again!