code: def jupyter_notebook(script_blocks, gallery_conf):
      
      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
docs: Generate a Jupyter notebook file cell-by-cell
  
      Parameters
      ----------
      script_blocks : list
          Script execution cells.
      gallery_conf : dict
          The sphinx-gallery configuration dictionary.