class_docstr: A class that represent a notebook cell as Markdown
class_docstr_tok: ["A","class","that","represent","a","notebook","cell","as","Markdown"]
docstr: Return the text representation of a code cell
code: def code_to_text(self):
      """Return the text representation of a code cell"""
      source = copy(self.source)
      comment_magic(source, self.language, self.comment_magics)
  
      if self.metadata.get("active") == "":
          self.metadata.pop("active")
  
      self.language = self.metadata.pop("language", self.language)
      if self.cell_type == "raw" and not is_active(
          self.ext, self.metadata, False
      ):
          return self.html_comment(self.metadata, "raw")
  
      options = metadata_to_text(self.language, self.metadata)
      code_cell_delimiter = three_backticks_or_more(self.source)
      return (
          [code_cell_delimiter + options]
          + source
          + [code_cell_delimiter]
      )
  
imports: import re
  import warnings
  from copy import copy
  from .cell_metadata import _IGNORE_CELL_METADATA, is_active, metadata_to_double_percent_options, metadata_to_rmd_options, metadata_to_text
  from .cell_reader import LightScriptCellReader, MarkdownCellReader, RMarkdownCellReader
  from .doxygen import markdown_to_doxygen
  from .languages import _SCRIPT_EXTENSIONS, cell_language, comment_lines, same_language
  from .magics import comment_magic, escape_code_start, need_explicit_marker
  from .metadata_filter import filter_metadata
  from .pep8 import pep8_lines_between_cells
label_desc: Use image node_id 4 for calling the MarkdownCellExporter obj's underlying member method code with example usage: obj.code_to_text() and returns: unknown, self