Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.3k Views
    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
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors