<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def jupyter_notebook(script_blocks, gallery_conf):
 """Generate a Jupyter notebook file cell-by-cell Parameters script_blocks : list Script execution cells. gallery_conf : dict The sphinx-gallery configuration dictionary. """

    first_cell = gallery_conf.get("first_notebook_cell", "%matplotlib inline")
    work_notebook = jupyter_notebook_skeleton()
    if first_cell is not None:
        add_code_cell(work_notebook, first_cell)
    fill_notebook(work_notebook, script_blocks)

    return work_notebook