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.


    Run command in console? Return key adds new line

    Pythonista
    3
    6
    1107
    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.
    • console
      console last edited by

      How do you run a command on the console interactive prompt?

      Pressing return adds a new line.

      cvp 1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        https://omz-software.com/pythonista/docs/ios/pythonista.html#pythonista-interactive-prompt

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp @console last edited by

          @console said:

          Pressing return adds a new line.

          Right, it adds the command you have typed in the console, preceded by ">>>".
          But it also runs your command.
          Example: type as command "print(1)"

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

            @cvp said:

            Example: type as command "print(1)"

            print() is not needed in the console…

            Example: type as command "1 + 1"

            cvp 1 Reply Last reply Reply Quote 0
            • cvp
              cvp @ccc last edited by

              @ccc said:

              print() is not needed in the console…

              You're right as usual, buT if you want to try your statements before to include them in a script 🙄 (ma mauvaise foi)

              1 Reply Last reply Reply Quote 1
              • console
                console last edited by

                Sorry everyone! The commands weren’t running because a script was running. Commands run if I stop the script and press return.

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