Community
    • Login

    how to configure Notepad++ to run currently open Python file?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.6k Views 2 Watching
    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.
    • Richdev BostonR Offline
      Richdev Boston
      last edited by

      I use Notepad++ for editing all kinds of programs and text, but I want to use it to run programs too.

      How do I run programs directly from the Python code I have open in Notepad++ ??

      If I put “run Python” it just flashes the Python cmd window and the program never runs.

      If I put the path to the Python runtime executable, the same thin happens. It does not actually run the program.

      What arguments (if any) do I need to include to run the current Python code?

      Thank you.

      Rich

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Richdev Boston
        last edited by

        @Richdev-Boston

        I assume you are looking for $(FULL_CURRENT_PATH) variable.
        In addition, you might want to execute python in a cmd instance with paramter /K
        to see the output.

        cmd /K python $(FULL_CURRENT_PATH)
        

        But there is an alternative which offers additional features.
        I’ve posted it here.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors