[IPython-dev] [Notebook 1.0.0] Display two png images side by side
Stéfan van der Walt
stefan at sun.ac.za
Mon Sep 2 16:38:45 EDT 2013
On Mon, Sep 2, 2013 at 10:31 PM, Francesco Montesano
<franz.bergesund at gmail.com> wrote:
> thank you very much for the example. This should work wonderfully for python
> 2.x., but, as Zoltan pointed out, it won't work on python 3.x, as you can't
> concatenate string and bytes objects (returned by base64 methods).
That shouldn't be too much of a problem:
In : bytes('asd'.encode('utf-8')) + base64.b64encode(b'asd')
In : (bytes('asd'.encode('utf-8')) +
Have a look at "numpy.compat" for some utility functions as well.
More information about the IPython-dev