cupid.util

cupid.util#

This module provides functions and classes for managing conda kernels, executing notebooks with custom engines, and creating tasks for Ploomber DAGs.

Functions

create_ploomber_nb_task(nb, info, cat_path, ...)

Creates a ploomber task for running a notebook, including necessary parameters.

create_ploomber_script_task(script, info, ...)

Creates a Ploomber task for running a script, including necessary parameters.

get_control_dict(config_path)

Get control dictionary from configuration file

is_bad_env(control, nb_info)

setup_book(config_path)

Setup run directory and output jupyter book

setup_logging(config_path)

Set up logging based on configuration file log level Options for log levels include debug, info, warning, and error.

Classes

MarkdownJinjaEngine()

Class for using the Jinja Engine to run notebooks

NBClientEngine()

A notebook engine representing an nbclient process.

Path(*args, **kwargs)

PurePath subclass that can make system calls.

Template(source, block_start_string, ...)

A compiled template that can be rendered.