[IPython-dev] [Notebook 1.0.0] Display two png images side by side
Thu Sep 12 10:53:21 CDT 2013
It does work with python 2. With python 3.3 I get in the notebook the
symbols of brocken images and the string of the png printed in the console
2013/9/12 Francesco Montesano <email@example.com>
> Dear Stefan,
> Sorry for not replying before. It does work now.
> 2013/9/2 Francesco Montesano <firstname.lastname@example.org>
>> I'll give a try tomorrow. not it's getting late
>> Do you know if HTML understands b'...'?
>> 2013/9/2 Stéfan van der Walt <email@example.com>
>>> On Mon, Sep 2, 2013 at 10:31 PM, Francesco Montesano
>>> <firstname.lastname@example.org> wrote:
>>> > thank you very much for the example. This should work wonderfully for
>>> > 2.x., but, as Zoltan pointed out, it won't work on python 3.x, as you
>>> > 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')
>>> Out: b'asdYXNk'
>>> In : (bytes('asd'.encode('utf-8')) +
>>> Out: 'asdYXNk'
>>> Have a look at "numpy.compat" for some utility functions as well.
>>> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev