ipyoverlay.utils.display_output#
- ipyoverlay.utils.display_output(obj)#
Render the passed object via
display()
in a new ipywidgetsOutput
widget and return it.This is useful for “widget-ifying” things with a single call, e.g. a matplotlib figure.
import matplotlib.pyplot as plt from ipyoverlay import display_output, OverlayContainer fig, ax = plt.subplots() ax.scatter(data) OverlayContainer(display_output(fig))