def METHOD_NAME(work_notebook, script_blocks):
    """Writes the Jupyter notebook cells
    Parameters
    ----------
    script_blocks : list of tuples
    """
    for blabel, bcontent, lineno in script_blocks:
        if blabel == 'code':
            add_code_cell(work_notebook, bcontent)
        else:
            add_markdown_cell(work_notebook, bcontent + '\n')