jellycell.cli.commands.export¶
jellycell export ipynb|md — export notebooks with reattached outputs.
Module Contents¶
Classes¶
JSON schema for |
Functions¶
Write a |
|
Write a MyST markdown file with cached outputs to |
|
Write a curated markdown tearsheet. |
Data¶
API¶
- jellycell.cli.commands.export.export_app¶
‘Typer(…)’
- class jellycell.cli.commands.export.ExportReport(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON schema for
jellycell export --json. Spec §10.1 contract.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.export.export_ipynb_cmd(ctx: typer.Context, notebook: pathlib.Path = typer.Argument(..., help='Source notebook (.py).')) None¶
Write a
.ipynbwith cached outputs reattached tosite/<stem>.ipynb.
- jellycell.cli.commands.export.export_md_cmd(ctx: typer.Context, notebook: pathlib.Path = typer.Argument(..., help='Source notebook (.py).')) None¶
Write a MyST markdown file with cached outputs to
site/<stem>.md.
- jellycell.cli.commands.export.export_tearsheet_cmd(ctx: typer.Context, notebook: pathlib.Path = typer.Argument(..., help='Source notebook (.py).'), output: pathlib.Path | None = typer.Option(None, '--output', '-o', help='Write to this path instead of the default manuscripts/tearsheets/<stem>.md.')) None¶
Write a curated markdown tearsheet.
Defaults to
manuscripts/tearsheets/<stem>.mdso the auto-generated subfolder stays separate from the hand-authored writeups that live at the root ofmanuscripts/(paper drafts, memos, thesis chapters). Use-o PATHto target anywhere else.Unlike
export md, this skips code source by default and only inlines what renders naturally in markdown (figures, JSON summaries, setup cells). The result is safe to commit and renders inline on GitHub.