class_docstr: Utility renderer using Bokeh to render a grid of plots over the same (x, y) range.
  
  Args:
      nrows (int, optional): Number of rows of plots, default ``1``.
      ncols (int, optional): Number of columns of plots, default ``1``.
      figsize (tuple(float, float), optional): Figure size in inches (assuming 100 dpi), default
          ``(9, 9)``.
      show_frame (bool, optional): Whether to show frame and axes ticks, default ``True``.
      want_svg (bool, optional): Whether output is required in SVG format or not, default
          ``False``.
  
  Warning:
      :class:`~contourpy.util.bokeh_renderer.BokehRenderer`, unlike
      :class:`~contourpy.util.mpl_renderer.MplRenderer`, needs to be told in advance if output to
      SVG format will be required later, otherwise it will assume PNG output.
class_docstr_tok: ["Utility","renderer","using","Bokeh","to","render","a","grid","of","plots","over","the","same","(","x",",","y",")","range",".","Args",":","nrows","(","int",",","optional",")",":","Number","of","rows","of","plots",",","default","``","1","``",".","ncols","(","int",",","optional",")",":","Number","of","columns","of","plots",",","default","``","1","``",".","figsize","(","tuple","(","float",",","float",")",",","optional",")",":","Figure","size","in","inches","(","assuming","100","dpi",")",",","default","``","(","9",",","9",")","``",".","show_frame","(","bool",",","optional",")",":","Whether","to","show","frame","and","axes","ticks",",","default","``","True","``",".","want_svg","(","bool",",","optional",")",":","Whether","output","is","required","in","SVG","format","or","not",",","default","``","False","``",".","Warning",":",":","class",":","`","~contourpy.util.bokeh_renderer.BokehRenderer","`",",","unlike",":","class",":","`","~contourpy.util.mpl_renderer.MplRenderer","`",",","needs","to","be","told","in","advance","if","output","to","SVG","format","will","be","required","later",",","otherwise","it","will","assume","PNG","output","."]
docstr: Save plots to SVG or PNG file.
  
  Args:
      filename (str): Filename to save to.
      transparent (bool, optional): Whether background should be transparent, default
          ``False``.
      webdriver (WebDriver, optional): Selenium WebDriver instance to use to create the image.
  
          .. versionadded:: 1.1.1
  
  Warning:
      To output to SVG file, ``want_svg=True`` must have been passed to the constructor.
docstr_tok: ["Save","plots","to","SVG","or","PNG","file",".","Args",":","filename","(","str",")",":","Filename","to","save","to",".","transparent","(","bool",",","optional",")",":","Whether","background","should","be","transparent",",","default","``","False","``",".","webdriver","(","WebDriver",",","optional",")",":","Selenium","WebDriver","instance","to","use","to","create","the","image",".","..","versionadded",":",":","1.1.1","Warning",":","To","output","to","SVG","file",",","``","want_svg=True","``","must","have","been","passed","to","the","constructor","."]
code: def save(
      self,
      filename: str,
      transparent: bool = False,
      *,
      webdriver: WebDriver | None = None,
  ) -> None:
      """Save plots to SVG or PNG file.
  
      Args:
          filename (str): Filename to save to.
          transparent (bool, optional): Whether background should be transparent, default
              ``False``.
          webdriver (WebDriver, optional): Selenium WebDriver instance to use to create the image.
  
              .. versionadded:: 1.1.1
  
      Warning:
          To output to SVG file, ``want_svg=True`` must have been passed to the constructor.
      """
      if transparent:
          for fig in self._figures:
              fig.background_fill_color = None  # type: ignore[assignment]
              fig.border_fill_color = None  # type: ignore[assignment]
  
      if self._want_svg:
          export_svg(
              self._layout, filename=filename, webdriver=webdriver
          )
      else:
          export_png(
              self._layout, filename=filename, webdriver=webdriver
          )
  
imports: from __future__ import annotations
  import io
  from typing import TYPE_CHECKING, Any
  from bokeh.io import export_png, export_svg, show
  from bokeh.io.export import get_screenshot_as_png
  from bokeh.layouts import gridplot
  from bokeh.models.annotations.labels import Label
  from bokeh.palettes import Category10
  from bokeh.plotting import figure
  import numpy
  from contourpy import FillType, LineType
  from contourpy.enum_util import as_fill_type, as_line_type
  from contourpy.util.bokeh_util import filled_to_bokeh, lines_to_bokeh
  from contourpy.util.renderer import Renderer
label_desc: Use image node_id 8 for calling the BokehRenderer obj's underlying member method code with example usage: obj.save(filename, transparent) without return types