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.
Very first day using Python in Pythonista - please help
Hi im Andy and today is my first experience using Pythonista. My vision is to use Python as a Algorithmic Trading tool to backtest trading ideas on the stock market.
Although that sounds like i know what im talking about, i dont... yet.
Im following a Introductory tutorial on youtube and the lady tells you that in one area of python like the command prompt terminal everything you code is acted upon there and then.
This would then print it in the next line bellow. However she says that when working on a project and using files which im guessing is the main screen in the middle of Pythonista it does run the code as you progrMming until its execute or compiled?
She then says that you have to type something like Print ("Hello") to get it to run that function in the file but this doesnt work for me but does on her desktop tutorial.
How do i get this to work so i can follow along to the tutorial?
Much appreciated and sorry for the most basic question you guys have probably ever heard!
Could you add a link to the tutorial you're trying to follow?
The example I'm talking about is at 25:40
Thanks for looking!
The thing she's using there is an interactive prompt/console. The equivalent in Pythonista is the console panel that you can swipe in from the right edge of the screen. You can type into the bar at the bottom (marked with ">") and press return on the keyboard to execute the code.
Cool, but she also mentions you can execute code in the project file part by using a print function?
She says you would use that alot when working in projects?
Yes, that's what the central part of the app is for (the script editor). You can type code there, and it won't get executed until you tap the run (▷) button.
Thanks for your help! :-)