In Jupyter Notebook I can use the following:
import ipywidgets as widgets
file = open("./image.png", "rb")
image = file.read()
widgets.Image(
value=image,
format='png',
width=700,
height=100,
)
This doesn't work in Jupyter Lab though, what is the Jupyter Lab version of the above?