Hi, 

I cannot figure out if it's possible to make a slideshow of a list of 
images using ipywidgets.widgets.Image and ipywidgets.widgets.Play. Can you 
please help me with an idea of how to link an integer value used by Play() 
and the image value by Image() ? 

A minimal example would be 

imglist = ['img1.jpg','img2'.jpg']

# file = open("images/WidgetArch.png", "rb")# image = file.read()imageview = 
widgets.Image(

    file = open(imglist[value],'rb'),

    image = file.read(),

    value=image,
    format='png',
    width=300,
    height=400)


play = widgets.Play(#     interval=10,
    value=0,
    min=0,
    max=1,
    step=1,
    description="Press play",
    disabled=False)# slider = widgets.IntSlider()widgets.jslink((play, 
'value'), (imageview, 'value'))widgets.VBox([play, imageview])



Thanks in advance,

Alex


-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/584a1464-a56b-474e-8ebd-0e814a841d7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to