Community
    • Login

    Use notepad++ to run python in the same IDLE

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 8.1k Views 3 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.
    • Amol DeshmaneA Offline
      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 Offline
        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 Offline
          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 Offline
            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

            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