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.
Newb to Python and Pythonista
-
when I create a script named 'mymodule' with class named 'myclass' in the Pythonista editor I can import that module from the console, instantiate the the class and test from the console. However when I make changes in the editor, and repeat that procedure my changes are not reflected in the console. I have tried 'reload' but that fails with an exception saying that module doesn't exist. I assume this due to my Python ignorance.
Version 1.5 which I have, should be saving and reloading my script file containing the changes. But no go. If I restart Pythonista it then works. What am I doing wrong? The code seems to be correct and we are talking hello world level here.
Kithara
-
Try:
import mymodule ; reload(mymodule)
You can also tap and hold on the
clear
button at the top right of the console window to restart Pythonista. -
-
Did you try executing the modified script (by tapping the "play" button) before importing it from the console?