diff --git a/home/config/default.nix b/home/config/default.nix index fe5bb8b1..5197b5f7 100644 --- a/home/config/default.nix +++ b/home/config/default.nix @@ -1,9 +1,9 @@ {...}: { - # TODO: ipython config file xdg.configFile = { + "pypoetry/config.toml".source = ./poetry-config.toml; + "ipython/profile_default/ipython_config.json".source = ./ipython_config.json; "jupyter/jupyter_server_config.py".source = ./jupyter_server_config.py; "jupyter/jupyter_nbconvert_config.py".source = ./jupyter_nbconvert_config.py; - "pypoetry/config.toml".source = ./poetry-config.toml; }; } diff --git a/home/config/ipython_config.json b/home/config/ipython_config.json new file mode 100644 index 00000000..44b67637 --- /dev/null +++ b/home/config/ipython_config.json @@ -0,0 +1,20 @@ +{ + "Application": { "log_datefmt": "%Y-%m-%d %H:%M:%S" }, + "InteractiveShell": { + "colors": "Linux", + "color_info": true + }, + "InteractiveShellApp": { + "exec_PYTHONSTARTUP": false, + "exec_lines": ["%load_ext autoreload", "%autoreload 2 --print"], + "gui": "tk", + "matplotlib": "tk", + "pylab": "tk" + }, + "TerminalIPythonApp": { "gui": "tk", "display_banner": false }, + "TerminalInteractiveShell": { + "editing_mode": "emacs", + "mouse_support": false, + "true_color": true + } +} diff --git a/home/config/ipython_config.py b/home/config/ipython_config.py deleted file mode 100644 index b8802128..00000000 --- a/home/config/ipython_config.py +++ /dev/null @@ -1,13 +0,0 @@ -c = get_config() # type: ignore -c.InteractiveShellApp.exec_PYTHONSTARTUP = False -c.InteractiveShellApp.exec_lines = ["%load_ext autoreload", "%autoreload 2 --print"] -c.InteractiveShellApp.gui = "tk" -c.InteractiveShellApp.matplotlib = "tk" -c.InteractiveShellApp.pylab = "tk" -c.TerminalIPythonApp.gui = "tk" -c.InteractiveShell.color_info = True -c.InteractiveShell.colors = "Linux" -c.TerminalInteractiveShell.editing_mode = "emacs" -c.TerminalInteractiveShell.mouse_support = False -c.TerminalInteractiveShell.true_color = False -c.Application.log_datefmt = "%Y-%m-%d %H:%M:%S"