hello camera displayed nothing

when i run the following code

import ipywidgets
from IPython.display import display
from jetcam.utils import bgr8_to_jpeg

image_widget = ipywidgets.Image(format='jpeg')

image_widget.value = bgr8_to_jpeg(image)

display(image_widget)

I got:

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…

what’s that?where is my image?How can I get the image show in jupyter lab?

again,
well,when i use jupyter notebook.Everything is OK!

Hallo,

i have the same problem…
Can somebody help me to get rid of this ?

I had the “Error displaying widget” first so i updated all packages i could (pip install…) no i have same problem as you do.

from the ipywidgets documentation we learn that

so the next 3 commands in a terminal solved the issue

pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager

then

sudo reboot
1 Like