class_docstr: FileArchive that can automatically capture notebook data via the
  display hooks and automatically adds a notebook HTML snapshot to
  the archive upon export.
class_docstr_tok: ["FileArchive","that","can","automatically","capture","notebook","data","via","the","display","hooks","and","automatically","adds","a","notebook","HTML","snapshot","to","the","archive","upon","export","."]
docstr: Find the name the user is using to access holoviews.
docstr_tok: ["Find","the","name","the","user","is","using","to","access","holoviews","."]
code: def get_namespace(self):
      """
      Find the name the user is using to access holoviews.
      """
      if "holoviews" not in sys.modules:
          raise ImportError("HoloViews does not seem to be imported")
      matches = [
          k
          for k, v in get_ipython().user_ns.items()  # noqa (get_ipython)
          if not k.startswith("_") and v is sys.modules["holoviews"]
      ]
      if len(matches) == 0:
          raise Exception(
              "Could not find holoviews module in namespace"
          )
      return f"{matches[0]}.archive"
  
imports: import os
  import sys
  import time
  import traceback
  import param
  from IPython.display import Javascript, display
  from nbconvert import HTMLExporter, NotebookExporter
  from nbconvert.preprocessors.clearoutput import ClearOutputPreprocessor
  from nbformat import reader
  from ..core.io import FileArchive, Pickler
  from ..plotting.renderer import HTML_TAGS, MIME_TYPES
  from .preprocessors import Substitute
label_desc: Use image node_id 2 for calling the NotebookArchive obj's underlying member method code with example usage: obj.get_namespace() and returns: matches, str