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)


I got:


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

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


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


sudo reboot
1 Like