def new_code_cell(input=None, prompt_number=None, outputs=None,<EOL>language=u'<STR_LIT>', collapsed=False, metadata=None):
cell = NotebookNode()<EOL>cell.cell_type = u'<STR_LIT:code>'<EOL>if language is not None:<EOL><INDENT>cell.language = unicode(language)<EOL><DEDENT>if input is not None:<EOL><INDENT>cell.input = unicode(input)<EOL><DEDENT>if prompt_number is not None:<EOL><INDENT>cell.prompt_number = int(prompt_number)<EOL><DEDENT>if outputs is None:<EOL><INDENT>cell.outputs = []<EOL><DEDENT>else:<EOL><INDENT>cell.outputs = outputs<EOL><DEDENT>if collapsed is not None:<EOL><INDENT>cell.collapsed = bool(collapsed)<EOL><DEDENT>cell.metadata = NotebookNode(metadata or {})<EOL>return cell<EOL>
Create a new code cell with input and output