<?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[How to run python code once written?]]></title><description><![CDATA[<p dir="auto">how do a run a python code once I have typed it.  I made some ascii art pictures and I am not sure.  When I run the code should it be just the code showing or the pictures also.  Thank You.  I have the python idle software downloaded and installed and notepad ++.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15119/how-to-run-python-code-once-written</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 01:09:01 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15119.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Jan 2018 03:28:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to run python code once written? on Sat, 20 Jan 2018 13:26:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/11007">@David-Hodge</a></p>
<p dir="auto">I can’t say what your python code should do as there is no info what has been coded but<br />
concerning the execution of code from within python there are several ways to achieve this.</p>
<ol>
<li>
<p dir="auto">use the run menu and run function (typically keyboard shortcut F5)<br />
within this dialog you would do something like</p>
<p dir="auto">cmd /K python $(FULL_CURRENT_PATH)</p>
</li>
</ol>
<p dir="auto">the variable FULL_CURRENT_PATH gets substituted by notepad++ with the full path<br />
of the current opened document. So it is a must that the script has been already saved<br />
before you run it.</p>
<ol start="2">
<li>
<p dir="auto">Install the excellent NppExec plugin. It does basically the same as the build in run function<br />
but offers a lot more in addition. Like you can define that not only the script should run but<br />
also some other action should take place. If using the NppExec plugin you do not need<br />
the cmd shell from the previous example as it has its own “shell” so a call</p>
<p dir="auto">python $(FULL_CURRENT_PATH)</p>
</li>
</ol>
<p dir="auto">is sufficient.</p>
<p dir="auto">3)Install python script plugin. As it is not its native functionality you can use it to run<br />
scripts as well. Its main purpose is to interact with notepad++, meaning you can<br />
automatically insert text into your document or reformat it automatically etc…</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29610</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29610</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Sat, 20 Jan 2018 13:26:43 GMT</pubDate></item></channel></rss>