docarray.document.mixins.plot module

class docarray.document.mixins.plot.PlotMixin[source]

Bases: object

Provide helper functions for Document to plot and visualize itself.

plot(output=None, inline_display=False)[source]

Visualize the Document recursively.

  • output (Optional[str]) – a filename specifying the name of the image to be created, the suffix svg/jpg determines the file type of the output image

  • inline_display (bool) – show image directly inside the Jupyter Notebook

Return type