Develop a Notepad editor with Tkinter.Tkinter is Python GUI toolkit which will provide GUI interface. To create this notepad editor we need to add Tkinter library. This Project contains functionalities like. Create new File. Cut, Copy and Past functionalities. How to install Tkinter library? The simple steps involved to create a notepad with Python points to that. While learning the language can be boring, when you create projects, no matter how small, your learning turns to fun. Tag Archives: Notepad Add new features to Notepad using Python scripts: keyboard shortcut to insert current time. I have to say, I spend a lot of time daily in Notepad text editor for Windows. I keep my “logbook” there. I record what I am doing now and what needs to be done. This allows me not to keep everything in my. for Notepad++Requires Python Scripting plugin

A Notepad++ Python Scriping Plugin to randomize lines in the editorVersion 1.0



  1. Copy to *pluginsPythonScriptscripts* in your NPP folder
  2. Restart NPP. It will now appear as a menu item under Plugins...Python Script...Scripts


  1. Select the lines to randomize, or select nothing.
  2. Go to the NPP menu, Plugins...Python Script...Scripts...RandomizeLines and click!
  3. If selected text is detected, it reorders the lines and replaces the selected text, otherwise the entire contents of current document.
  4. Undo is available if you dont like the results
Notepad++ Python Archives


The plugin attempts to detect your EOL setting and replicate it when replacing with the randomized lines

Notepad++ python plugin
Dec 14, 2020·5 min read

Jupyter Notebook is a great tool to learn to code. It is easy to write a code and immediately test it in the Jupyter Notebook cells with SHIFT + ENTER. You get to see the tables and other visualizations of your code underneath the code you wrote. However, when your codes become more complex, you will start to lose the overview. Therefore, at the same time, I am trying to learn to write Python scripts using Notebook++. Below is a little tutorial of how I have set up Notebook++ to run the Python scripts within Notepad++.

Currently, I am using Notepad++ 7.9.1 and Python 3.9.

Step 1:

The first step will be to install Python and Notepad++ if you haven’t done that already. After that, you will have to check whether Python is working correctly on your system. Then it is time to open Notepad++ and let t

Step 2:

To be able to test Python scripts, we would need a plugin called NppExec.

Go at the top of the screen to Plugins -> Plugins Admin

The Plugins Admin screen will pop up. On this screen, search for NppExec (it does not show up on my screen since it is already installed). Select NppExec and click on install in the top right corner. The installation will take a couple of seconds.

Step 3

Now it is time to open NppExec in Notepad++. Go to Plugins -> NppExec -> Execute

Step 4

In the Execute screen, you will have to define where Python is located on your machine. We can quickly figure this out by opening the Command Line in Windows.

Hold the Windows key + R -> type in cmd -> press ok to open the Command Line. In the Command Line type where Python. This will show you where Python is located on the system.

Just copy the location of the python exe file, and let’s go back to Notepad++. The execute screen is waiting for us.

Notepad++ Python Archives Download

In the execute screen, paste the location of Python followed with “$(FILE_NAME)”

Notepad Python Archives Download

Then press Save. In the new screen that opens, you can give the script a name (in my case, I used Run_Python) and press save. Click on ok to close the screen.

Step 5

Next, we are going to prepare the console area of Notepad++ to work with our Python script.

Got to Plugins -> NppExec

Now make sure that Console Commands History is unchecked. And that No internal messages, Save all files on execute and Follow $(CURRENT_DIRECTORY) are checked.

Step 6

The next step is to set up NppExec correctly. Go to advanced options.


Tick on the ‘place to the Marcos Submenu’ -> select the script you just made from Associated script drop-down menu. Press ok to close the window.

Step 7

Restart Notepad++. Following will be to run a python script in Notepad++. Just write a simple script such as assigning a value to x. And then save it to a PY file by going to file -> save as

You will now see in the left lower corner, below the console, that we are running a Python file.

To run the script, go to Macro -> click on the script you created

Notepad Python Archives Free

The console will now show the output of your script!

Step 8

To make a shortcut key to run the Python program, go to settings -> shortcut mapper


Python Notepad++ Download

In the Shortcut Mapper -> go to the Plugin commands tab -> select the Python script you created -> select the script -> click on modify

Notepad++ Python Idle

In the new window, you can assign a shortcut key.

Notepad++ Python Plugins

Whenever I press F9 in Notepad++, my script is being run. This is a great way to figure out if the script I wrote runs smoothly. These past weeks F9 has become my most used shortcut on my keyboard. I hope it will do the same for you.