# doc-cache created by Octave 10.1.0
# name: cache
# type: cell
# rows: 3
# columns: 1
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 16
jupyter_notebook


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2658
 -- NOTEBOOK = jupyter_notebook (NOTEBOOK_FILENAME)
 -- NOTEBOOK = jupyter_notebook (NOTEBOOK_FILENAME, OPTIONS)

     Run and fill the Jupyter Notebook in file NOTEBOOK_FILENAME from
     within GNU Octave.

     Both text and graphical Octave outputs are supported.

     This class has a public property ‘notebook’ which is a structure
     representing the JSON-decoded Jupyter Notebook.  This property is
     intentionally public to enable advanced notebook manipulations.

     Note: Jupyter Notebook versions (‘nbformat’) lower than 4.0 are not
     supported.

     The optional second argument OPTIONS is a struct with fields:

        • ‘tmpdir’ to set the temporary working directory.

     ‘%plot’ magic is supported with the following settings:

        • "%plot -f <format>" or "%plot –format <format>": specifies the
          image storage format.  Supported formats are:

             − PNG (default)

             − SVG (Note: If SVG images do not appear in the notebook,
               it is most likely related to Jupyter Notebook security
               mechanisms and explicitly "trusting" them will be
               necessary).

             − JPG

        • "%plot -r <number>" or "%plot –resolution <number>": specifies
          the image resolution.

        • "%plot -w <number>" or "%plot –width <number>": specifies the
          image width.

        • "%plot -h <number>" or "%plot –height <number>": specifies the
          image height.

     Examples:

          ## Run all cells and generate the filled notebook

          ## Instantiate an object from a notebook file
          notebook = jupyter_notebook ("myNotebook.ipynb");
          ## Run the code and embed the results in the notebook property
          notebook.run_all ();
          ## Generate a new notebook by overwriting the original notebook
          notebook.generate_notebook ("myNotebook.ipynb");

          ## Run just the second cell and generate the filled notebook

          ## Instantiate an object from a notebook file
          notebook = jupyter_notebook ("myNotebook.ipynb");
          ## Run the code and embed the results in the notebook property
          notebook.run (2)
          ## Generate a new notebook in a new file
          notebook.generate_notebook ("myNewNotebook.ipynb");

          ## Generate an Octave script from a notebook

          ## Instantiate an object from a notebook file
          notebook = jupyter_notebook ("myNotebook.ipynb");
          ## Generate the Octave script
          notebook.generate_octave_script ("jup_script.m");

     See also: jsondecode, jsonencode.


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
Run and fill the Jupyter Notebook in file NOTEBOOK_FILENAME from within
GNU O...





