Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-30 Thread Michael Droettboom
Sorry this thread fell through the cracks. Thanks for the reminder. The error is not actually on importing and parsing the .py file (it seems to do that just fine). The error is on printing to the console, at which point it tries to convert the Unicode string to ascii (which fails because

Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-25 Thread Sébastien Barthélemy
Hi, just wanted to raise this problem on the devel list, where it probably belongs. Also, if nobody has time to look at it now and you prefer me to file a bug, please don't hesitate to tell it. the original post is there: http://thread.gmane.org/gmane.comp.python.matplotlib.general/20411 Cheers

Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-21 Thread Sébastien Barthélemy
Le 18 novembre 2009 17:24, Michael Droettboom md...@stsci.edu a écrit : This is a bug -- but it has a fairly straightforward fix: to use Sphinx's include directive rather than roll our own as we currently do. This has been fixed in SVN r7972. plot-directive now takes an encoding option,

[Matplotlib-users] encoding of files included in sphinx

2009-11-18 Thread Sébastien Barthélemy
Hello, I'm using the matplotlib Sphinx extension which automatically includes the source code and the figures it produces into the Sphinx document. This is a very handy feature whose use goes far beyond documenting matplotlib itself. (thanks for that by the way) However I have trouble when the

Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-18 Thread Michael Droettboom
Sébastien Barthélemy wrote: Hello, I'm using the matplotlib Sphinx extension which automatically includes the source code and the figures it produces into the Sphinx document. This is a very handy feature whose use goes far beyond documenting matplotlib itself. (thanks for that by the