jina.types.document.mixins.plot module

class jina.types.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.

Parameters
  • 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

None