<?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>Thu, 29 Oct 2015 18:40:04 -0700</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&#xA;and Plumbum. I was planning to suggest it as a new feature, then I thought it&#xA;might be an experimental feature, and now it&amp;rsquo;s just a blog post. But it was an&#xA;interesting idea and didn&amp;rsquo;t seem to be well documented process on the web. So,&#xA;here it is.&lt;/p&gt;&#xA;&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&#xA;current method would be to use raw Python,&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kn&#34;&gt;from&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;uncertainties&lt;/span&gt; &lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;ufloat&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ufloat&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;12.34&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;0.01&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre style=&#34;output&#34;&gt;&#xA;12.340+/-0.010&#xA;&lt;/pre&gt;&#xA;&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&#xA;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&#xA;like to share the basics of using it with you now. This library was originally&#xA;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;&#xA;representation and is far more powerful than the first implementation. It safely&#xA;does nothing if you do not have a color-compatible systems (posix + tty&#xA;currently), but can be forced if need be. It is included with Plumbum, so you&#xA;don&amp;rsquo;t have to add a requirement for your scripts that is non-essential (as color&#xA;often is). It is integrated with &lt;code&gt;plumbum.cli&lt;/code&gt;, too. Also, I&amp;rsquo;ve managed to&#xA;accelerate the color selection algorithms about 8x, allowing near game-like&#xA;speeds. (see the &lt;code&gt;fullcolor.py&lt;/code&gt; example).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
