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.

Read more…

Comments

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.

Read more…

Comments

2014-10-20 Animation in a notebook using holoviews

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

Read more…

Comments

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).

Read more…

Comments

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

Trying to answer the question in http://stackoverflow.com/questions/12233105/how-can-i-display-an-image-in-the-terminal/22537549?noredirect=1#comment41404352_22537549 :

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.

Read more…

Comments

2014-10-15 Trying to include javascript in a notebook

Comments

2014-10-15 Setting options in holoviews

using holoviews : setting display options

Holoviews is a nice framework to extend pyplot capacities.

Read more…

Comments

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:

Read more…

Comments

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...

Read more…

Comments

2014-01-14 Trying out ipython blogging

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>]

Comments