Add ipython with config

This commit is contained in:
Evie Litherland-Smith 2025-01-15 13:34:46 +00:00
parent 3f18d732d6
commit 2fc329e227
3 changed files with 18 additions and 1 deletions

View file

@ -5,6 +5,7 @@
pythonEnv = (
pkgs.python312.withPackages (
ps: with ps; [
ipython
flake8
isort
numpy
@ -39,5 +40,6 @@
lua-language-server
rust-analyzer
];
home.file.".ipython/profile_default/ipython_config.json".source = ./ipython_config.json;
xdg.configFile."ruff/pyproject.toml".source = ./ruff.toml;
}

View file

@ -0,0 +1,15 @@
{
"Application": { "log_datefmt": "%Y-%m-%d %H:%M:%S" },
"InteractiveShell": {
"color_info": true
},
"InteractiveShellApp": {
"exec_PYTHONSTARTUP": false,
"exec_lines": ["%load_ext autoreload", "%autoreload 2 --print"]
},
"TerminalInteractiveShell": {
"editing_mode": "emacs",
"mouse_support": false,
"true_color": true
}
}

View file

@ -1,6 +1,6 @@
HOSTS=("$@")
# Config files
for TARGET in ".inputrc" ".config/starship.toml"; do
for TARGET in ".inputrc" ".config/starship.toml" ".ipython/profile_default/ipython_config.json"; do
SOURCE="$HOME/$TARGET"
echo "--- $SOURCE ---"
TMP_TARGET=/tmp/rsync-local-config