Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)
For developing, I always prefer using Notepad++

But I don't know how to compile the files in python through Notepad++?

Anyone, please help me?

1 Answer

0 votes
by (26.4k points)

First option, which is easiest one is:

Open the Notepad++, then in the Menu go to, Run->Run..(F5)

Then type:

C:\Python26\python.exe "$(FULL_CURRENT_PATH)"

No, you can save it, to create a shortcut for it, instead of clicking run

Make sure,

You give python31  in the place of python26, if you're using python 3.1

Add -i on the off chance that you need the command line window to remain open after the script has wrapped up

Second option:

You can also use a batch script which runs the python script and then just create a shortcut for that from Notepad++.

Looking for a good course to learn python in detail? Join python online course fast to gain more knowledge.

Related questions

0 votes
1 answer
asked Sep 23, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Dec 29, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Sep 16, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer

Browse Categories

...