Add ipython with config
This commit is contained in:
parent
3f18d732d6
commit
2fc329e227
|
@ -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;
|
||||
}
|
||||
|
|
15
system/home/programming/ipython_config.json
Normal file
15
system/home/programming/ipython_config.json
Normal 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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue