<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fellinghaug Blog &#187; interactive python</title>
	<atom:link href="http://asbjorn.fellinghaug.com/blog/tag/interactive-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://asbjorn.fellinghaug.com/blog</link>
	<description>&#62;&#62;&#62; from fellinghaug import asbjorn; asbjorn.play()</description>
	<lastBuildDate>Thu, 19 Nov 2009 21:22:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IPython &#8211; enhanced python interpreter</title>
		<link>http://asbjorn.fellinghaug.com/blog/2008/11/ipython-enhanced-python-interpreter/</link>
		<comments>http://asbjorn.fellinghaug.com/blog/2008/11/ipython-enhanced-python-interpreter/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 14:23:31 +0000</pubDate>
		<dc:creator>Asbjørn Alexander Fellinghaug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[interactive python]]></category>
		<category><![CDATA[ipython]]></category>

		<guid isPermaLink="false">http://asbjorn.fellinghaug.com/blog/?p=130</guid>
		<description><![CDATA[Hi everyone.
A couple of times now I&#8217;ve been amazed over how many people who is still unaware of the IPython. From the IPython webpage, a very short summary of what IPython is &#8220;Enhanced interactive Python shell&#8221;. The python programming language is surrounded its interpreter, which facilitates dynamic typing and execution. This feature sufficiently increases productivity [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everyone.</p>
<p>A couple of times now I&#8217;ve been amazed over how many people who is still unaware of the IPython. From the IPython webpage, a very short summary of what IPython is &#8220;Enhanced interactive Python shell&#8221;. The python programming language is surrounded its interpreter, which facilitates dynamic typing and execution. This feature sufficiently increases productivity as there is no problem to test and try code snippets on-the-fly.</p>
<p>The IPython is a further extension of the standard python interpreter, as IPython provides more features in the python shell, such as auto-completion of imported modules, syntax highlightning, colors, and a variouse other usefull commands and features.</p>
<p>IPython is highly flexible in terms of providing the user with the possibility to extend the python shell even further with custom commands (<em>called magic commands</em>). There is also an even tigther integration between the python interpreter and the underlying shell, such as bash,csh, etc. It is for instance much simpler to list files and folders, by just typing &#8220;ls&#8221; directly into the shell. Even commands such as &#8220;mkdir&#8221;, &#8220;mv&#8221;, &#8220;rm&#8221; is builtin, and its trivial to further extend the shell command vocabulary with more complex commands. We&#8217;ll show an example for howto extend with custom commands below.</p>
<p>As every flexible software, IPython comes with a main configuration file ($HOME/.ipython/ipythonrc). If we wanted a custom command, such as &#8220;chmod &lt;mod&gt; &lt;file&gt;&#8221; (chmod 755 myfile.py), we could add this to the &#8220;ipythonrc&#8221; file:</p>
<div class="code"><code><br />
# my custom chmod alias. By typing '&gt;&gt;&gt; chmod 755 myprog.py' or<br />
# '&gt;&gt;&gt; chmod a+rx myprog.py' IPython will execute this<br />
# statement as a shell command.<br />
alias chmod chmod %s %s<br />
</code></div>
<p>Also, debugging lists (tuples, dictionaries, etc) is more readable within the IPython, as it wraps all such print statements inside the &#8220;pprint&#8221; (<em>pretty-print</em>) module, and therefore a comprehensible representation will find place.</p>
<p>So, if you often find yourself in the python interpreter, I would highly recommend you spending a half an hour to get to known IPython. I promise you &#8211; it will save you a lot of headaches in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://asbjorn.fellinghaug.com/blog/2008/11/ipython-enhanced-python-interpreter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
