save_notebook: Attempt to save the current notebook.

View source: R/save_notebook.R

save_notebookR Documentation

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)

Arguments

nb_path

The path to the notebook

timeout

Number of seconds to wait for save

Value

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

Examples

## Not run: 
save_notebook("foo.ipynb")

## End(Not run)

ucbds-infra/ottr documentation built on Feb. 24, 2024, 2:31 a.m.