Files
nix-config/home/base/tui/editors/ipython/README.md
T
ryan4yin | 二花 7ea9fd3197 feat(ipython): add data helpers without persisted history (#510)
Add a dedicated IPython module with startup helpers for JSON, YAML, TOML, and CSV plus a small set of common standard-library imports for interactive use.

Disable SQLite history and stop preserving ~/.ipython: interactive sessions can contain credentials and other sensitive data, so that profile state must not survive reboots implicitly.

Assisted-by: DeepSeek Harness 0.2.2-alpha.2 (deepseek-flash)
2026-11-02 14:45:20 +08:00

14 lines
723 B
Markdown

# IPython
[`default.nix`](./default.nix) manages `~/.ipython/profile_default` with two pieces:
- `ipython_config.py` disables SQLite history because interactive sessions may contain secrets.
- `startup/10-data-helpers.py` loads JSON, YAML, TOML, and CSV helpers at every IPython start. It
also pre-imports a small set of common standard-library names such as `Path`, `Counter`, and
`datetime`.
[`data-helpers.py`](./data-helpers.py) deliberately keeps heavier libraries such as NumPy and pandas
out of startup; import them explicitly when needed. The `~/.ipython` profile is not persisted by
`hosts/idols-ai/preservation.nix`, so Home Manager recreates the config and helpers from the Nix
store on every activation.