jellycell.cli.commands.new¶
jellycell new <name> — scaffold a new notebook from a template.
Module Contents¶
Classes¶
JSON schema for |
Functions¶
Create |
API¶
- class jellycell.cli.commands.new.NewReport(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON 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.selfis explicitly positional-only to allowselfas a field name.
- 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>.pywith the canonical starter template.