4 Replies - 11315 Views - Last Post: 04 April 2011 - 01:02 PM Rate Topic: -----

#1 Djanvk   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 80
  • Joined: 14-December 08

How to get notepad++ to run Python

Posted 04 April 2011 - 02:44 AM

I've been trying many thing and Just cannot get notepad++ to run python, how can I get it to run Python from notepad++?


Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: How to get notepad++ to run Python

#2 Eric115   User is offline

  • coderさん
  • member icon

Reputation: 63
  • View blog
  • Posts: 698
  • Joined: 19-January 09

Re: How to get notepad++ to run Python

Posted 04 April 2011 - 04:32 AM

I don't think it can run python. As far as I know, it is only an editor.

EDIT:
I had another look and you might be able to run script files in it, looks like you just need to provide a link to something that can run it (not really notepad++ running it). Follow what JackOfAllTrades said below.

This post has been edited by Eric115: 04 April 2011 - 06:13 AM

Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: How to get notepad++ to run Python

Posted 04 April 2011 - 04:55 AM

You can add an entry in the "Run" menu. You will need to save the file before running it. You will also need to add something to the script to keep the window open when completed, like
input('Press enter to continue')


Choose Run->Run
Enter the path to the Python executable, followed by "$(FULL_CURRENT_PATH)", so for example C:\Python31\python.exe "$(FULL_CURRENT_PATH)"
Choose Run to run immediately, or Save to create an entry in the Run menu.
Was This Post Helpful? 3
  • +
  • -

#4 atraub   User is offline

  • Pythoneer
  • member icon

Reputation: 828
  • View blog
  • Posts: 2,248
  • Joined: 23-December 08

Re: How to get notepad++ to run Python

Posted 04 April 2011 - 06:30 AM

Interesting, I didn't realize that Notepad++ could do that... although from a developer's perspective, it doesn't seem like it'd be a hard feature for them to implement. Very cool JackOfAllTrades, I may have to give Notepad++ a serious shot one day.

This post has been edited by atraub: 04 April 2011 - 06:31 AM

Was This Post Helpful? 0
  • +
  • -

#5 Djanvk   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 80
  • Joined: 14-December 08

Re: How to get notepad++ to run Python

Posted 04 April 2011 - 01:02 PM

Thanks a lot I appreciate the replys
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1