• Login
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.
  • R
    Richdev Boston
    last edited by Jul 15, 2017, 4:42 AM

    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

    C 1 Reply Last reply Jul 15, 2017, 12:52 PM Reply Quote 0
    • C
      Claudia Frank @Richdev Boston
      last edited by Jul 15, 2017, 12:52 PM

      @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
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors