class_docstr: A class for updating Jupyter notebook (``*.ipynb``) files.
  
  For more on this file format, see
  https://ipython.org/ipython-doc/dev/notebook/nbformat.html#nbformat.
class_docstr_tok: ["A","class","for","updating","Jupyter","notebook","(","``","*",".ipynb","``",")","files",".","For","more","on","this","file","format",",","see","https",":","\/\/ipython.org\/ipython-doc\/dev\/notebook\/nbformat.html","#","nbformat","."]
docstr: Converts a string of code into a list for a Jupyter notebook code cell.
  
  Args:
      code (str): Code to be converted.
  
  Returns:
      list[str]: A list of strings containing the lines of code that
          can be used for the "source" attribute of a Jupyter notebook code cell.
          Each element of the list (i.e. line of code) contains a
          trailing newline character ("\n") except for the last element.
docstr_tok: ["Converts","a","string","of","code","into","a","list","for","a","Jupyter","notebook","code","cell",".","Args",":","code","(","str",")",":","Code","to","be","converted",".","Returns",":","list","[","str","]",":","A","list","of","strings","containing","the","lines","of","code","that","can","be","used","for","the","``","source","''","attribute","of","a","Jupyter","notebook","code","cell",".","Each","element","of","the","list","(","i.e",".","line","of","code",")","contains","a","trailing","newline","character","(","``","\\n","''",")","except","for","the","last","element","."]
code: def _code_str_to_source_list(self, code):
      r"""Converts a string of code into a list for a Jupyter notebook code cell.
  
      Args:
          code (str): Code to be converted.
  
      Returns:
          list[str]: A list of strings containing the lines of code that
              can be used for the "source" attribute of a Jupyter notebook code cell.
              Each element of the list (i.e. line of code) contains a
              trailing newline character ("\n") except for the last element.
      """
      source_list = ["{}\n".format(s) for s in code.split("\n")]
      source_list[-1] = source_list[-1].rstrip("\n")
      return source_list
  
imports: from __future__ import absolute_import
  from abc import abstractmethod
  import json
  import logging
  import os
  import pasta
  from sagemaker.cli.compatibility.v2.ast_transformer import ASTTransformer
label_desc: Use image node_id 4 for calling the JupyterNotebookFileUpdater obj's underlying member method code with example usage: obj._code_str_to_source_list(code) and returns: source_list