Run current buffer in Python

Discussion Forums discussion Run current buffer in Python

This topic contains 0 voices and has 1 reply.

Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
Author Posts
August 3, 2008 at 11:51 am #459

Ecir Hana
Member

Hello,

I just found PN, sorry for a newbie quiestion:

Is it possible to run current buffer (preferably without saving) in Python and display Python’s output in PN?

Thanks a lot!

September 13, 2008 at 8:49 am #16066

simon
Key Master

Yes, set up a tool and point it at python.exe, then use the Input/Output tab to capture the output. I’m not sure if you can do it with unsaved text, but you could try passing your script to python on standard input (same options page). You may need to pass an extra parameter to python to tell it to expect the input.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.