Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Use notepad++ to run python in the same IDLE

    Help wanted · · · – – – · · ·
    3
    4
    6884
    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.
    • Amol Deshmane
      Amol Deshmane last edited by

      I am using following run command in Notepad++ to run python script in IDLE (Python 3.6)
      <file_path>\idle.bat -r “$(FULL_CURRENT_PATH)”
      However, this opens a new Python shell everytime I run the script.
      How can I make python script run in the existing Python shell?

      1 Reply Last reply Reply Quote 0
      • Scott Sumner
        Scott Sumner last edited by

        @Amol-Deshmane

        The simple answer is that your workflow doesn’t make a lot of sense, at least to some of us…

        Search for this text “What I always wonder is why would one edit a python file in notepad++ and then want to start it using idle?” in this thread: https://notepad-plus-plus.org/community/topic/13237/using-python-with-notepad

        …to try to understand why.

        1 Reply Last reply Reply Quote 1
        • Amol Deshmane
          Amol Deshmane last edited by

          Even if we leave aside the question of using Idle to run a script from Npp, my original question pertains to a different issue that whenever I run python from Notepad++ even using python.exe it opens a new window. Has anyone encountered a similar issue ? If yes how can I make the code run in the existing shell? I’d appreciate some pointers.
          Thanks!

          Claudia Frank 1 Reply Last reply Reply Quote 0
          • Claudia Frank
            Claudia Frank @Amol Deshmane last edited by

            @Amol-Deshmane

            Why do you need to have it in the same console?
            For reference? If so, NppExec provides functions for saving last output.
            See NppExec help.
            If it is for different reason we need to know what you do to see if this can be done
            or not.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors