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.
import mymodule ; reload(mymodule)
You can also tap and hold on the
clearbutton 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?