jellycell.cli.commands.new

jellycell new <name> — scaffold a new notebook from a template.

Module Contents

Classes

NewReport

JSON schema for jellycell new --json.

Functions

new_notebook

Create notebooks/<name>.py with the canonical starter template.

API

class jellycell.cli.commands.new.NewReport(/, **data: Any)

Bases: pydantic.BaseModel

JSON schema for jellycell new --json.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

schema_version: int

1

path: str

None

name: str

None

jellycell.cli.commands.new.new_notebook(ctx: typer.Context, name: str = typer.Argument(..., help='Notebook name (with or without .py).'), project: pathlib.Path | None = typer.Option(None, '--project', help='Project root.'), force: bool = typer.Option(False, '--force', help='Overwrite existing file.')) None

Create notebooks/<name>.py with the canonical starter template.