class_docstr: A class that can read notebook cells from their text representation
class_docstr_tok: ["A","class","that","can","read","notebook","cells","from","their","text","representation"]
docstr: Create a cell reader with empty content
docstr_tok: ["Create","a","cell","reader","with","empty","content"]
code: def __init__(self, fmt=None, default_language=None):
      """Create a cell reader with empty content"""
      if not fmt:
          fmt = {}
      self.ext = fmt.get("extension")
      self.default_language = (
          default_language
          or _SCRIPT_EXTENSIONS.get(self.ext, {}).get(
              "language", "python"
          )
      )
      self.comment_magics = fmt.get(
          "comment_magics", self.default_comment_magics
      )
      self.use_runtools = fmt.get("use_runtools", False)
      self.format_version = fmt.get("format_version")
      self.metadata = None
      self.org_content = []
      self.content = []
      self.explicit_soc = None
      self.explicit_eoc = None
      self.cell_type = None
      self.language = None
      self.cell_metadata_json = fmt.get("cell_metadata_json", False)
      self.doxygen_equation_markers = fmt.get(
          "doxygen_equation_markers", False
      )
  
imports: import re
  import warnings
  from copy import copy
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_raw_cell
  from packaging.version import parse
  from .doxygen import doxygen_to_markdown
  from .languages import _SCRIPT_EXTENSIONS
  from .cell_metadata import is_active, is_json_metadata, rmd_options_to_metadata, text_to_metadata
  from .languages import _JUPYTER_LANGUAGES_LOWER_AND_UPPER
  from .magics import is_magic, need_explicit_marker, uncomment_magic, unescape_code_start
  from .pep8 import pep8_lines_between_cells
  from .stringparser import StringParser
label_desc: Use image node_id 1 to create a new BaseCellReader object  with example: obj = BaseCellReader(fmt, default_language)