Run Carrot Transform in Jupyter notebooks.
Start with a fresh repo and set up the environment:
uv add notebook
uv run jupyter notebookThis starts Jupyter and opens it in your browser. You now have a notebook environment managed by uv.
In a notebook cell, install carrot-transform:
%pip install carrot-transformNow you can use the carrot-transform CLI command in your notebook.
Open carrot_transform.ipynb and run the cells (Shift+Enter or click Run). The notebook uses subprocess to call the carrot-transform CLI command.
The output files are written to carrottransform/examples/test/test_output/ (or whatever you set in --output-dir). The notebook will list the generated TSV files after running.
To clear old cell outputs:
- All outputs: Cell → All Output → Clear
- One cell: Click cell → Cell → Current Outputs → Clear
Or just re-run the cells - new output replaces the old.
See the Carrot Transform docs for all the command options.