python posts – Page 3

New Mayavi release

A week ago, the Peter Wang released a new version of the Enthought Tool Suite (ETS). With it came a new version of Mayavi2.

Prabhu and I have been horribly busy we real life, and I had the bad feeling that we were not giving enough love to Mayavi. I …

Using Python, Scipy, ETS, … to implement art

The Aikon project has just been slashdotted.

The project is about implementing a robotic artist, with a special artistic touch:

The Co-principal investigator, Patrick Tresset, gave a talk at the French Pycon this year and I was simply flabbergasted by the project. It is amazing to mix together art and …

EuroScipy 2010, Paris July 8-11. Save the date!

EuroScipy 2010, the 3rd European meeting on Python in Science, will be held July 8-11 in the center of Paris, at the Ecole Normale Supérieure.

We have made good progress in the organization, and we already have an exciting program although paper submission is not yet even open.

Tutorial tracks …

The SciPy 2009 proceedings are online

We are finally announcing the online edition of SciPy proceedings:

http://conference.scipy.org/proceedings/SciPy2009/

This year, we tried to raise the bar in terms of article quality. This involved having a more strict review process, and we must thank a lot all the reviewers. I have the feeling …

Announcing EuroScipy 2010

The 3rd European meeting on Python in Science

Paris, Ecole Normale Supérieure, July 8-11 2010

We are happy to announce the 3rd EuroScipy meeting, in Paris, July 2010.

The EuroSciPy meeting is a cross-disciplinary gathering focused on the
use and development of the Python language in scientific research. This
event …

Decoration in Python done right: Decorating and pickling

Decoration is a fantastic pattern in Python that allows for very light-weight metaprograming with functions rather than objects (see this article for an in-depth discussion). However, when decorating, it is very easy to break another great feature of the language: its reflectivity and its ability to do static representations of …

Writing parallel code in a readable way

Although I often have embarrasingly parallel problems (data parallel), and I have an 8-CPU box at work, I used to frown on writing parallel computing code when doing exploratory coding. We now have fantastic parallel computing facilities in Python (amongst other, multiprocessing, IPython, and parallel Python). However, in my opinion …

EuroScipy 2010 in Paris

Next year’s EuroScipy will be in Paris, as Nicolas Chauvat and myself announced in Leipzig this summer. We are still busy organizing, but we have pretty much settled down for a dates: July 8th- July 11th. So mark those dates, and get ready to come to Paris for a …

Useful trick for functions and tests using np.random

How to test functions that use the numpy random number generator

Mayavi: 2 videos of tutorial-like presentation

I gave a presentation on Mayavi in the Python for science seminar organised by Fernando Perez at Berkeley. I was loudmouth and obnoxious as usual, and unfortunately for me, I was recorded.

More seriously, Jeff Teeters has filmed the presentation and recorded the sound was a microphone I was wearing …

My article on scientific computing with Python

I have never sold the rights to the article I published in LinuxMagazine France on scientific computing with Python. So I am uploading it to the net, under a CC-by-SA license : http://hal.inria.fr/hal-00776672/

It is in French, so it restricts the audience.

Tutorial on scientific use of Python

The notes of the tutorial I gave on scientific use of Python at PyconFR are online. They are in French, but I am giving the link here, just in case it is needed:

http://dl.afpy.org/pycon-fr-09/python_scientifique/index.html

Object-oriented design: framework objects versus data containers

I find that in object oriented design, there are two kinds of objects:

  • A first kind is the object encoding logics. This is an object for which clever and complex design will hold together the logics of a state-full application. It can often be part of a forest of objects …

Fuzzy on OOP and the French

Fantastic:

Haha - I shake my fuzzywuzzy beard at you in bewilderment. Do you people dislike OOP, the class statement is mere boilerplate to you, I mumble incoherent French obscenities in your general direction. (Did you know the French acronym for object-oriented programming is POO?).

Job offering for junior Python developer

Our lab is seeking to hire an engineer to work on porting our machine learning code to the scikit learn, adding tests and documentation and packaging it.

We are looking for someone motivated by quality in software and open source. No prior scientific computing experience is required. You will be …

Pycon FR: presentations and tutorials

May 30th and 31st the French Python conference, Pycon FR, will be held at ‘la citée des sciences’, la Villette, in Paris.

The first day, I will be giving a one-hour-long tutorial (in French) on numpy, scipy, and all the Python for Science jazz. On the following day, I will …

Minimum spanning tree

Gary Ruben came up with the excellent idea of visualizing the minimum spanning tree of a Delaunay tesselation in addition to Delaunay tessalation itself. After he sent me his code, I spent some times playing with it, because I found out that, with the right choice of visualization parameter, it …

Extracting the data from the Delaunay triangulation

Gary Ruben just asked me if it was possible to retrieve the triangulation information from my previous Delaunay example. Actually the reason I came up with this example is that Emanuelle Gouillart, my partner[*], needed to do Delaunay triangulation on some data. She was kind enough to extract that code …

Mayavi image of the … month

Tonight I sat down and played a bit with VTK’s Delaunay tessalation filter. I wanted to inspect the local structure of a graph created by Delaunay tessalation of random points. To see better the structure, I selected a slab of the resulting unstructured grid. I think the image is …

Long sys.path and consequences, one more reason not to use easy_install

For those who don’t know, sys.path is the path that the Python interpreter traverse at each module import to look for the module file imported.

This blog post is about the consequences of having a long sys.path. I’ll try and make it short, but I would …