<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using Python with Notepad++]]></title><description><![CDATA[<p dir="auto">What is the recommended way of using Python with Notepad++?</p>
<p dir="auto">(1) Should we use the latest Python 3 from <a href="https://www.python.org/downloads/windows/" rel="nofollow ugc">https://www.python.org/downloads/windows/</a> ?<br />
(2) Which, if any, Notepad++ plugins are recommended for just writing and running Python when learning the language?<br />
(3) Which Notepad++ plugins are recommended for writing Python code to examine and modify the context of Notepad++ buffers?<br />
(4) Is the “NppExec” plugin the preferred way of working with Python?</p>
<p dir="auto">Notepad++'s plugin manager shows three Python plugins. Following the links found in the brief details shown by the plugin manager is not very informative. The pages left me concerned about versions and what has been kept up to date, or not.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13237/using-python-with-notepad</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 13:24:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13237.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Feb 2017 15:16:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using Python with Notepad++ on Wed, 08 Feb 2017 20:47:16 GMT]]></title><description><![CDATA[<p dir="auto">Claudia, thanks for this:</p>
<ol>
<li>
<p dir="auto">N++ is better than Python idle because each line of code in N++ is numbered, whereas idle in not.  That makes it difficult to troubleshoot a file with 1000 lines of code.</p>
</li>
<li>
<p dir="auto">Great, I did not know about that plug-in.</p>
</li>
<li>
<p dir="auto">A lot of people use lmddgfy sarcastically, but  that link you sent me helped me a lot because I am not familiar enough with idle to determine the keywords for a ddg search.</p>
</li>
</ol>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21687</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21687</guid><dc:creator><![CDATA[chemebabak]]></dc:creator><pubDate>Wed, 08 Feb 2017 20:47:16 GMT</pubDate></item><item><title><![CDATA[Reply to Using Python with Notepad++ on Tue, 07 Feb 2017 23:12:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chemebabak" aria-label="Profile: chemebabak">@<bdi>chemebabak</bdi></a></p>
<p dir="auto">if you want to run/start another application from within notepad then there is no save<br />
way to interact with it. It could always happen something unforeseen which breaks a logic.<br />
What I always wonder is why would one edit a python file in notepad++ and then want to start it using idle?<br />
Why not using idle at all if idle is the preferred way?</p>
<p dir="auto">If it is just about executing a script, npp can, as you already showed, handle this and when using NppExec plugin<br />
you can even save your file before executing it. Shell doesn’t need to be closed as it gets executed via<br />
python interpreter and output is captured. So a configuration for NppExec plugin coud look like this</p>
<p dir="auto">npp_save<br />
cd “WHERE_EVER_YOUR_PYTHON_3.6_INSTALLATION_IS”<br />
python “$(FULL_CURRENT_PATH)”</p>
<p dir="auto">Save it - done.</p>
<p dir="auto">-r -&gt; <a href="https://is.gd/hHnNmu" rel="nofollow ugc">this</a> might help.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21648</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21648</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Tue, 07 Feb 2017 23:12:48 GMT</pubDate></item><item><title><![CDATA[Reply to Using Python with Notepad++ on Tue, 07 Feb 2017 19:53:26 GMT]]></title><description><![CDATA[<p dir="auto">Python 3.6.0 and Notepad++</p>
<p dir="auto">I would like to run a script (macro, etc.) that 1) saves the N++ *.py file, then runs the script to the Python shell.</p>
<p dir="auto">From the Notepad++ run menu I run:<br />
“C:\Program Files (x86)\Python36-32\Lib\idlelib\idle.bat” -r “$(FULL_CURRENT_PATH)”<br />
(By the way, I have that saved as a shortcut: Alt+Shift+P)<br />
For any other computer it would be:<br />
“C:\ …insert your path here… \Lib\idlelib\idle.bat” -r “$(FULL_CURRENT_PATH)”</p>
<p dir="auto">This opens the Python 3.6.0 Shell and runs the Python code. However, it does not close save the *.py file prior to running.  Also, it does not close any open Python Shell windows (optional, but it might be nice).</p>
<p dir="auto">I would like to run a script that:</p>
<ol>
<li>Saves my current *.py file that I am editing in N++,</li>
<li>Close any open Python Shell windows, (optional, but nice)</li>
<li>run: “C:\Program Files (x86)\Python36-32\Lib\idlelib\idle.bat” -r “$(FULL_CURRENT_PATH)”<br />
all in one shortcut.<br />
How can I modify the code to for this?</li>
</ol>
<p dir="auto">By the way, what is “-r” after “\idle.bat”?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21644</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21644</guid><dc:creator><![CDATA[chemebabak]]></dc:creator><pubDate>Tue, 07 Feb 2017 19:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to Using Python with Notepad++ on Tue, 07 Feb 2017 09:19:43 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, @Claudia. That is exactly the type of information I wanted.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21622</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21622</guid><dc:creator><![CDATA[AdrianHHH]]></dc:creator><pubDate>Tue, 07 Feb 2017 09:19:43 GMT</pubDate></item><item><title><![CDATA[Reply to Using Python with Notepad++ on Mon, 06 Feb 2017 15:58:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adrianhhh" aria-label="Profile: AdrianHHH">@<bdi>AdrianHHH</bdi></a></p>
<p dir="auto">I guess there is no simple yes/no answer.<br />
If you want to start learning the language I would install python 3.<br />
Python 2’s lifetime ends in 2020 (afaik).</p>
<p dir="auto">If you want to interact with notepad++ and scintilla - then python script plugin<br />
is handy as it has already wrapped most of the functionality. The plugin has<br />
python2 included. You could use the future imports in your scripts to make it<br />
look like more python3 but there are still differences. Not many and nothing<br />
which can’t be easily learned when switching - you just need to be aware.<br />
See <a href="https://wiki.python.org/moin/Python2orPython3" rel="nofollow ugc">https://wiki.python.org/moin/Python2orPython3</a> for more details.</p>
<p dir="auto">In theory, you could use python3 together with ctypes to do the same<br />
as the python script plugin but then you have to wrap each function by yourself.</p>
<p dir="auto">For non python script pluign usage.<br />
NppExec makes it easy to run your python code with different interpreters<br />
and with different command line parameters and does support output<br />
manipulation. What I mean is, if python throws an error you could define rules<br />
which would result in highlighting this errors and if clicking on it, it will redirect or<br />
open the source file for you. So yes, I recommend using it.</p>
<p dir="auto">Concerning the plugins, I’m only using python script plugin and did not test<br />
the others so I cannot say if it is worth installing it or not.</p>
<p dir="auto">Cheers<br />
Claudia</p>
<p dir="auto">Btw. nothing speaks against installing and using py3 and python script plugin together.<br />
I’m using it that way.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21602</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21602</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Mon, 06 Feb 2017 15:58:28 GMT</pubDate></item></channel></rss>