class_docstr: Read notebook cells from scripts
  (common base for R and Python scripts)
class_docstr_tok: ["Read","notebook","cells","from","scripts","(","common","base","for","R","and","Python","scripts",")"]
code: def uncomment_code_and_magics(self, lines):
      if self.cell_type == "code" or self.comment != "#'":
          if self.comment_magics:
              if is_active(self.ext, self.metadata):
                  uncomment_magic(
                      lines,
                      self.language or self.default_language,
                      explicitly_code=self.explicit_soc,
                  )
                  if (
                      self.cell_type == "code"
                      and not self.explicit_soc
                      and need_explicit_marker(
                          lines, self.language or self.default_language
                      )
                  ):
                      self.metadata["comment_questions"] = False
              else:
                  lines = uncomment(lines)
  
      if self.cell_type == "code":
          return unescape_code_start(
              lines, self.ext, self.language or self.default_language
          )
  
      return uncomment(
          lines,
          self.markdown_prefix or self.comment,
          self.comment_suffix,
      )
  
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 for calling the ScriptCellReader obj's underlying member method code with example usage: obj.uncomment_code_and_magics(lines) and returns: uncomment, unescape_code_start