This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: html.services.contents.filecheckpoints

File-based Checkpoints implementations.

2 Classes

class IPython.html.services.contents.filecheckpoints.FileCheckpoints(**kwargs)

Bases: IPython.html.services.contents.fileio.FileManagerMixin, IPython.html.services.contents.checkpoints.Checkpoints

A Checkpoints that caches checkpoints for files in adjacent directories.

Only works with FileContentsManager. Use GenericFileCheckpoints if you want file-based checkpoints with another ContentsManager.

checkpoint_model(checkpoint_id, os_path)

construct the info dict for a given checkpoint

checkpoint_path(checkpoint_id, path)

find the path to a checkpoint

create_checkpoint(contents_mgr, path)

Create a checkpoint.

delete_checkpoint(checkpoint_id, path)

delete a file’s checkpoint


list the checkpoints for a given file

This contents manager currently only supports one checkpoint per file.

rename_checkpoint(checkpoint_id, old_path, new_path)

Rename a checkpoint from old_path to new_path.

restore_checkpoint(contents_mgr, checkpoint_id, path)

Restore a checkpoint.

class IPython.html.services.contents.filecheckpoints.GenericFileCheckpoints(**kwargs)

Bases: IPython.html.services.contents.checkpoints.GenericCheckpointsMixin, IPython.html.services.contents.filecheckpoints.FileCheckpoints

Local filesystem Checkpoints that works with any conforming ContentsManager.

create_file_checkpoint(content, format, path)

Create a checkpoint from the current content of a file.

create_notebook_checkpoint(nb, path)

Create a checkpoint from the current content of a notebook.

get_file_checkpoint(checkpoint_id, path)

Get a checkpoint for a file.

get_notebook_checkpoint(checkpoint_id, path)

Get a checkpoint for a notebook.