Re: [jupyter] Unicode Greek letters in matplotlib images with nbconvert's python API

2017-02-09 Thread Thomas Kluyver
On 8 February 2017 at 23:58, Paul Hobson wrote: > nbdata = nbformat.read(nbf, as_version=4, encoding='utf-8') For reference, I'm pretty sure that passing encoding= on this line has no effect - it's not passed down to anything that takes an encoding argument. Passing it to

Re: [jupyter] Unicode Greek letters in matplotlib images with nbconvert's python API

2017-02-08 Thread Thomas Kluyver
In this line: On 8 February 2017 at 02:31, Paul Hobson wrote: > with open(nbfile, 'r') as nb: Can you try adding a parameter to open(..., encoding='utf-8') I think it's reading the notebook file wrong because of the default encoding on Windows. You could also use the

[jupyter] Unicode Greek letters in matplotlib images with nbconvert's python API

2017-02-07 Thread Paul Hobson
I'm having trouble displaying Greek letters when using the nbconvert python API. Is there a trick to dumping PNGs from the python API? Interestingly, the images look fine when dumped from the command line via: jupyter nbconvert img_test.ipynb --to rst My function to dump the images is here