Learn R Programming

ottr (version 1.5.3)

save_notebook: Attempt to save the current notebook.

Description

Attempt to save the notebook by displaying Javascript if running on Jupyter. This function waits until the modification time of the file has changed or until the specified timeout expires.

Usage

save_notebook(nb_path, timeout = 10)

Value

A boolean indicating whether the file was saved successfully. If Jupyter is not running, this function returns TRUE.

Arguments

nb_path

The path to the notebook

timeout

Number of seconds to wait for save

Examples

Run this code
if (FALSE) {
save_notebook("foo.ipynb")
}

Run the code above in your browser using DataLab