JupyterLab-problem

Hi!
JupyterLab Unable to display real-time pictures.

import traitlets
import ipywidgets.widgets as widgets
from IPython.display import display
from jetbot import Camera, bgr8_to_jpeg

camera = Camera.instance(width=224, height=224)

image = widgets.Image(format=‘jpeg’, width=224, height=224) # this width and height doesn’t necessarily have to match the camera

camera_link = traitlets.dlink((camera, ‘value’), (image, ‘value’), transform=bgr8_to_jpeg)

display(image)

The result is:
Image(value=b’\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xdb\x00C\x00\x02\x01\x0…

How should I solve it?
Thanks

Hi zhou_yonglin,

Thanks for reaching out!

Sometimes this issue happens on certain browsers, or if a Jupyter lab extension was not installed.

Do you mind clarify which browser you’re using? We’ve tested most successfully with Chrome.

Best,
John