Image credit: Nicholas Moreau at WikiMedia

Feb 12, 2010

Acire - browse Python code snippets



If you use Ubuntu Karmic, and are a Python programmer, or learning Python, then do check out Acire - it's a sweet way to browse Python snippets, run them, edit them in Acire itself, test again, and then copy the edited code into your project. 


N.B.: To get the latest changes that enable edit-and-run, get a local branch of the project (bzr branch lp:acire) instead of downloading the 0.2 release; my changes to enable this haven't been package-released yet. The 0.3 release, when it comes out, should have these features built in.


See the project announcement by Jono Bacon for background info. Also see his blog for version 0.2, including the need to install dependency packages:
sudo apt-get install python-gtksourceview python-gnomeprint

The same advice as for Acire applies for the snippets - use bzr branch lp:python-snippets instead of installing from the PPA, so you can get the latest contributions. To get Acire to use your branch folder as the snippet store, use the SNIPPETS_DIR environment variable to specify the location:
SNIPPETS_DIR="snippets_dir" path/to/acire

edgar@vm910:~$ SNIPPETS_DIR="launchpad/python-snippets/" launchpad/acire/trunk/bin/acire

Do consider submitting code snippets to the python-snippets project, as Jono requests. 

No comments:

Post a Comment