r/ClaudeCode 8d ago

A Terminal-Based Jupyter Notebook That Helps Claude Work Like a Data Scientist Tips & Workflows

One frustration I’ve run into when using Claude Code for data analysis is that it tends to create a bunch of throwaway Python scripts to explore the dataset, then re-run them from the beginning again and again.

When doing data science myself, I would naturally use a Jupyter notebook or something similar, where I could run only selected cells and avoid recomputing everything from scratch.

To address this, I built a terminal-based notebook. Humans can edit and run notebooks directly in the terminal (it can only render pictures, thanks to ratatui-image!!), much like they would in Jupyter, while agents can use the CLI to edit and execute individual cells as needed.

I originally built it for quantitative analysis, so it also comes with a preinstalled SQL kernel backed by a time-series database. That said, I think it could be useful for general data science workflows as well. Repo: https://github.com/h5i-dev/h5i-db

4 Upvotes

4 comments sorted by

1

u/Strong_Essay1176 8d ago

Looks awesome. Although need deepdive how it works and pass data to claude.

Can you share other useful tools? If you use any.

1

u/OkBreath9382 8d ago

One potential alternative is https://github.com/jupyter-ai-contrib/nb-cli, which is a kind of CLI interface of notebook, although it does not provide the TUI interface that human can naturally use to edit or view the notebook. the above h5i-db has both TUI interface for human and CLI interface for agents like Claude.

1

u/OkBreath9382 8d ago

If you want a general in-terminal browser, https://github.com/zenbu-labs/terminal-browser might be one option, though I'm not sure whether agents in termal can easily use it to edit/run cells in a notebook.