<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ipython on ISciNumPy.dev</title><link>https://iscinumpy.dev/tags/ipython/</link><description>Recent content in Ipython on ISciNumPy.dev</description><generator>Hugo</generator><language>en-us</language><managingEditor>henryfs@princeton.edu (Henry Schreiner)</managingEditor><webMaster>henryfs@princeton.edu (Henry Schreiner)</webMaster><lastBuildDate>Tue, 09 Jun 2026 15:40:47 -0400</lastBuildDate><atom:link href="https://iscinumpy.dev/tags/ipython/index.xml" rel="self" type="application/rss+xml"/><item><title>Making an autoload extension for IPython</title><link>https://iscinumpy.dev/post/making-an-autoload-extension-for-ipython/</link><pubDate>Fri, 24 Jul 2015 07:06:00 -0700</pubDate><author>henryfs@princeton.edu (Henry Schreiner)</author><guid>https://iscinumpy.dev/post/making-an-autoload-extension-for-ipython/</guid><description>&lt;p&gt;I recently decided to try my hand at making an auto-load extension for Python
and Plumbum. I was planning to suggest it as a new feature, then I thought it
might be an experimental feature, and now it&amp;rsquo;s just a blog post. But it was an
interesting idea and didn&amp;rsquo;t seem to be well documented process on the web. So,
here it is.&lt;/p&gt;
&lt;p&gt;The plan was to make commands like this:&lt;/p&gt;</description></item><item><title>Uncertainty extension for IPython</title><link>https://iscinumpy.dev/post/uncertainty-extension-for-ipython/</link><pubDate>Fri, 24 Jul 2015 06:45:00 -0700</pubDate><author>henryfs@princeton.edu (Henry Schreiner)</author><guid>https://iscinumpy.dev/post/uncertainty-extension-for-ipython/</guid><description>&lt;p&gt;Wouldn&amp;rsquo;t it be nice if we had uncertainty with a nice notation in IPython? The
current method would be to use raw Python,&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;uncertainties&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ufloat&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ufloat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;12.34&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.01&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre class="output"&gt;
12.340+/-0.010
&lt;/pre&gt;
&lt;p&gt;Let&amp;rsquo;s use the infix library to make the notation easier. We&amp;rsquo;ll define &lt;code&gt;|pm|&lt;/code&gt; to
mean &lt;code&gt;+/-&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Plumbum color</title><link>https://iscinumpy.dev/post/plumbum-color-post/</link><pubDate>Wed, 22 Jul 2015 12:25:00 -0700</pubDate><author>henryfs@princeton.edu (Henry Schreiner)</author><guid>https://iscinumpy.dev/post/plumbum-color-post/</guid><description>&lt;p&gt;I&amp;rsquo;ve been working on a color addition to Plumbum for a little while, and I&amp;rsquo;d
like to share the basics of using it with you now. This library was originally
built around a special &lt;code&gt;str&lt;/code&gt; subclass, but now is built on the new &lt;code&gt;Styles&lt;/code&gt;
representation and is far more powerful than the first implementation. It safely
does nothing if you do not have a color-compatible system (posix + tty
currently), but can be forced if need be. It is included with Plumbum, so you
don&amp;rsquo;t have to add a requirement for your scripts that is non-essential (as color
often is). It is integrated with &lt;code&gt;plumbum.cli&lt;/code&gt;, too. Also, I&amp;rsquo;ve managed to
accelerate the color selection algorithms about 8x, allowing near game-like
speeds. (see the &lt;code&gt;fullcolor.py&lt;/code&gt; example).&lt;/p&gt;</description></item></channel></rss>