class_docstr: `Card` represents an individual Metaflow Card, a single HTML file, produced by
  the card `@card` decorator. `Card`s are contained by `CardContainer`, returned by
  `get_cards`.
  
  Note that the contents of the card, an HTML file, is retrieved lazily when you call
  `Card.get` for the first time or when the card is rendered in a notebook.
class_docstr_tok: ["`","Card","`","represents","an","individual","Metaflow","Card",",","a","single","HTML","file",",","produced","by","the","card","`","@","card","`","decorator",".","`","Card","`","s","are","contained","by","`","CardContainer","`",",","returned","by","`","get_cards","`",".","Note","that","the","contents","of","the","card",",","an","HTML","file",",","is","retrieved","lazily","when","you","call","`","Card.get","`","for","the","first","time","or","when","the","card","is","rendered","in","a","notebook","."]
docstr: Opens the card in a local web browser.
  
  This call uses Python's built-in [`webbrowser`](https://docs.python.org/3/library/webbrowser.html)
  module to open the card.
docstr_tok: ["Opens","the","card","in","a","local","web","browser",".","This","call","uses","Python","'s","built-in","[","`","webbrowser","`","]","(","https",":","\/\/docs.python.org\/3\/library\/webbrowser.html",")","module","to","open","the","card","."]
code: def view(self) -> None:
      """
      Opens the card in a local web browser.
  
      This call uses Python's built-in [`webbrowser`](https://docs.python.org/3/library/webbrowser.html)
      module to open the card.
      """
      import webbrowser
  
      self._temp_file = tempfile.NamedTemporaryFile(suffix=".html")
      html = self.get()
      self._temp_file.write(html.encode())
      self._temp_file.seek(0)
      url = "file://" + os.path.abspath(self._temp_file.name)
      webbrowser.open(url)
  
imports: from typing import Optional, Union, TYPE_CHECKING
  from metaflow.datastore import FlowDataStore
  from metaflow.metaflow_config import CARD_SUFFIX
  from .card_resolver import resolve_paths_from_task, resumed_info
  from .card_datastore import CardDatastore, CardNameSuffix
  from .exception import UnresolvableDatastoreException, IncorrectArgumentException, IncorrectPathspecException
  import os
  import tempfile
  import uuid
label_desc: Use image node_id 7 for calling the Card obj's underlying member method code with example usage: obj.view() without return types