omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Very first day using Python in Pythonista - please help

    Pythonista
    2
    7
    3438
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ourkid123uk
      Ourkid123uk last edited by

      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.

      Eg,

      Print "Hello"

      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!

      Cheers,

      Andy

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        Could you add a link to the tutorial you're trying to follow?

        1 Reply Last reply Reply Quote 0
        • Ourkid123uk
          Ourkid123uk last edited by

          Yeah thanks!

          http://youtu.be/MirG-vJOg04

          The example I'm talking about is at 25:40

          Thanks for looking!

          1 Reply Last reply Reply Quote 0
          • omz
            omz last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • Ourkid123uk
              Ourkid123uk last edited by

              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?

              1 Reply Last reply Reply Quote 0
              • omz
                omz last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • Ourkid123uk
                  Ourkid123uk last edited by

                  Great!
                  Thanks for your help! :-)

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors