docstr: Save the source to file, open the rendered result in a viewer.
  
  Args:
      filename: Filename for saving the source (defaults to ``name`` + ``'.gv'``)
      directory: (Sub)directory for source saving and rendering.
      cleanup (bool): Delete the source file after rendering.
      quiet (bool): Suppress ``stderr`` output from the layout subprocess.
      quiet_view (bool): Suppress ``stderr`` output from the viewer process
                         (ineffective on Windows).
  
  Returns:
      The (possibly relative) path of the rendered file.
  
  Raises:
      graphviz.ExecutableNotFound: If the Graphviz executable is not found.
      subprocess.CalledProcessError: If the exit status is non-zero.
      RuntimeError: If opening the viewer is not supported.
  
  Short-cut method for calling :meth:`.render` with ``view=True``.
  
  Note:
      There is no option to wait for the application to close, and no way
      to retrieve the application's exit status.
docstr_tok: ["Save","the","source","to","file",",","open","the","rendered","result","in","a","viewer",".","Args",":","filename",":","Filename","for","saving","the","source","(","defaults","to","``","name","``","+","``","'.gv","'","``",")","directory",":","(","Sub",")","directory","for","source","saving","and","rendering",".","cleanup","(","bool",")",":","Delete","the","source","file","after","rendering",".","quiet","(","bool",")",":","Suppress","``","stderr","``","output","from","the","layout","subprocess",".","quiet_view","(","bool",")",":","Suppress","``","stderr","``","output","from","the","viewer","process","(","ineffective","on","Windows",")",".","Returns",":","The","(","possibly","relative",")","path","of","the","rendered","file",".","Raises",":","graphviz.ExecutableNotFound",":","If","the","Graphviz","executable","is","not","found",".","subprocess.CalledProcessError",":","If","the","exit","status","is","non-zero",".","RuntimeError",":","If","opening","the","viewer","is","not","supported",".","Short-cut","method","for","calling",":","meth",":","`",".render","`","with","``","view=True","``",".","Note",":","There","is","no","option","to","wait","for","the","application","to","close",",","and","no","way","to","retrieve","the","application","'s","exit","status","."]
code: def view(
      self,
      filename=None,
      directory=None,
      cleanup=False,
      quiet=False,
      quiet_view=False,
  ):
      """Save the source to file, open the rendered result in a viewer.
  
      Args:
          filename: Filename for saving the source (defaults to ``name`` + ``'.gv'``)
          directory: (Sub)directory for source saving and rendering.
          cleanup (bool): Delete the source file after rendering.
          quiet (bool): Suppress ``stderr`` output from the layout subprocess.
          quiet_view (bool): Suppress ``stderr`` output from the viewer process
                             (ineffective on Windows).
  
      Returns:
          The (possibly relative) path of the rendered file.
  
      Raises:
          graphviz.ExecutableNotFound: If the Graphviz executable is not found.
          subprocess.CalledProcessError: If the exit status is non-zero.
          RuntimeError: If opening the viewer is not supported.
  
      Short-cut method for calling :meth:`.render` with ``view=True``.
  
      Note:
          There is no option to wait for the application to close, and no way
          to retrieve the application's exit status.
      """
      return self.render(
          filename=filename,
          directory=directory,
          view=True,
          cleanup=cleanup,
          quiet=quiet,
          quiet_view=quiet_view,
      )
  
imports: import codecs
  import io
  import locale
  import logging
  import os
  from ._compat import text_type
  from .None import backend
  from .None import tools
label_desc: Use image node_id 10 for calling the File obj's underlying member method code with example usage: obj.view(filename, directory, cleanup, quiet, quiet_view) and returns: self