Posts about ipython (old posts, page 1)

2014-11-22 Reading KML My Tracks files in ipython

It's easy to record tracks (for instance while running) using the "My tracks" app on android systems. What about being able to re-use them?

In :doc:2014-11-22-reading-kml-my-tracks-files-in-ipython we reviewed different approches. Let's now try to use this data.

2014-11-15 Reading KML My Tracks files in ipython

It's easy to record tracks (for instance while running) using the "My tracks" app (see https://play.google.com/store/apps/details?id=com.google.android.maps.mytracks) on android systems. What about being able to re-use them?

Here, I am reviewing some methods to read a KML file, including fastkml, pykml, to finally opt for a custom method with the xmltodict package.

2014-10-20 Animation in a notebook using holoviews

An easy way to include movie in a notebook using Holoviews.

2014-10-20 Chi distribution

When studying a multi-dimensional random variable, if these are guassian the norm if the vector follows a $\chi$ distribution (see http://en.m.wikipedia.org/wiki/Chi_distribution).

2014-10-16 How can I display an image in the terminal?

Is there any sort of utility I can use to convert an image to ASCII and then print it in my terminal? I looked for one but couldn't seem to find any.



2014-10-15 Setting options in holoviews

using holoviews : setting display options¶

Holoviews is a nice framework to extend pyplot capacities.

2014-02-15 Converting moinmoin pages to nikola

nikolFrom a previous post, we have this function to import a page from moinmoin, convert it and publish:

2014-02-11 Converting MoinMoin pages to Nikola

I have another wiki to take notes. These are written using the MoinMoin syntax, which is nice, but I found no converter from MoinMoin to anything compatible with Nikola.

Following this post http://carreau.github.io/posts/06-NBconvert-Doc-Draft.html , I thought I might give it a try using ipython within nikola:

In [1]:
URL = 'http://invibe.net/cgi-bin/index.cgi/SciBlog/2005-10-29?action=print'


NOTE: this should not be tried with these URLS as they do not exist anymore...

How to easily publish an ipython notebook?¶

installing the appropriate plugins¶

Here, we will need to install additions to the nikola publishing tool: a rendering machine + a theme. Using homebrew in mcosx, this looks like:

brew install npm
npm install -g less



and

nikola install_theme zen-ipython



Once this was done, one could tune conf.py and then issue:

nikola new_post -f ipynb



Finally, one needs to build (nikola build) and publish (nikola deploy)

example¶

In [1]:
plot(rand(50))

Out[1]:
[<matplotlib.lines.Line2D at 0x10ab2d1d0>]