Community
    • Login

    Use notepad++ to run python in the same IDLE

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 7.6k 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.
    • Amol DeshmaneA
      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 SumnerS
        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 DeshmaneA
          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 FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            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
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors