REPL in Pythonista?
-
Hi,
I'm currently doing a course teaching programming principles using the Python REPL as a mandatory tool.
I bought Pythonista with the assumption that obviously/surely it had REPL console support seeing how it was a full implementation of Python and could do amazing things! But it appears it does not do this? Is that possible? Or am I overlooking something very obvious?
Thanks in advance.
Regards,
Michal
-
Read the docs. The REPL exists. Swipe to the left and type at the bottom of the screen.
-
@michal Or Try this little script using code
import code def custom_repl(): code.interact(banner="Hello michal", local=locals()) if __name__ == "__main__": custom_repl()
Type exit() to leave the infinite loop.
-
Ahh!! Thanks.
I found the console without problems but I totally missed the text entry area right at the bottom of the screen. Guess I expected text entry to be in the console area at the top.
Thanks again!