class_docstr: The default viewer on macOS using ``Preview.app``.
class_docstr_tok: ["The","default","viewer","on","macOS","using","``","Preview.app","``","."]
docstr: Display given file.
docstr_tok: ["Display","given","file","."]
code: def show_file(self, path, **options):
      """
      Display given file.
      """
      subprocess.call(["open", "-a", "Preview.app", path])
      executable = sys.executable or shutil.which("python3")
      if executable:
          subprocess.Popen(
              [
                  executable,
                  "-c",
                  "import os, sys, time; time.sleep(20); os.remove(sys.argv[1])",
                  path,
              ]
          )
      return 1
  
imports: import os
  import shutil
  import subprocess
  import sys
  from shlex import quote
  from .None import Image
label_desc: Use image node_id 2 for calling the MacViewer obj's underlying member method code with example usage: obj.show_file(path) and returns: int