class_docstr: Read notebook cells from Spyder/VScode scripts (#59)
class_docstr_tok: ["Read","notebook","cells","from","Spyder\/VScode","scripts","(","#","59",")"]
code: def __init__(self, fmt, default_language=None):
      LightScriptCellReader.__init__(self, fmt, default_language)
      script = _SCRIPT_EXTENSIONS[self.ext]
      self.default_language = default_language or script["language"]
      self.comment = script["comment"]
      self.comment_suffix = script.get("comment_suffix", "")
      self.start_code_re = re.compile(
          rf"^\s*{re.escape(self.comment)}\s*%%(%*)\s(.*)$"
      )
      self.alternative_start_code_re = re.compile(
          r"^\s*{}\s*(%%|<codecell>|In\[[0-9 ]*\]:?)\s*$".format(
              re.escape(self.comment)
          )
      )
      self.explicit_soc = True
  
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 DoublePercentScriptCellReader object from inherited base classes: LightScriptCellReader with example: obj = DoublePercentScriptCellReader(fmt, default_language)