• Login
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.
  • A
    Amol Deshmane
    last edited by Feb 12, 2017, 8:54 AM

    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
    • S
      Scott Sumner
      last edited by Feb 12, 2017, 1:11 PM

      @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
      • A
        Amol Deshmane
        last edited by Feb 13, 2017, 6:38 AM

        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!

        C 1 Reply Last reply Feb 13, 2017, 9:08 AM Reply Quote 0
        • C
          Claudia Frank @Amol Deshmane
          last edited by Feb 13, 2017, 9:08 AM

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