samples: IPython >0.11 compatibility

Signed-off-by: Jiří Župka <jzupka@redhat.com>