Items tagged: python

Sphinx Latex Output Without Justification And Hyphenation

Tuesday, 24 March 2015

If you’d like to turn off justification and hyphenation in the Latex produced by Sphinx, add the following code to the latex_elements map in your conf.py file.

read more

Tags

   

Mac No Suitable Image Found

Wednesday, 23 February 2011

If you’re building native extensions for python or ruby on a Mac and you get an error like:

read more

Tags

     

Debugging utf-8 Email In Django And Python

Tuesday, 22 December 2009

In case anyone else is wondering why their utf-8 email is not coming out as it should when using Django…

read more

Tags

   

Gentoo Not Upgrading To Python 2.6

Friday, 4 September 2009

Gentoo recently switched to make python 2.6 the default python. This means that mod_python and mod_wsgi will be re-compiled against 2.6. Which means that any python modules you’re using with Apache will also need to be re-compiled against the new version or you’ll get version mis-match errors. If you’d rather not go through all that work you can tell portage not to upgrade with the following line in /etc/portage/package.mask:

read more

Tags

   

Google Chart API

Tuesday, 11 December 2007

Google have released their chart API. Here’s a few alternatives for Python:

See also vtk and MayaVi

read more

urllib2.URLError: urlopen error unknown url type: https

Wednesday, 17 January 2007

Note to self: for the following to work on a Mac with fink’s python

read more

Tags