Switch to using json config for ipython

This commit is contained in:
Evie Litherland-Smith 2024-02-09 12:34:34 +00:00
parent 8a66f1f41e
commit a7d0c8d9c7
3 changed files with 22 additions and 15 deletions

View file

@ -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;
};
}

View file

@ -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
}
}

View file

@ -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"