dotfiles
1

Configure Feed

Select the types of activity you want to include in your feed.

Add IPython logging

Juan Nunez-Iglesias (Jul 3, 2026, 5:48 PM +0200) 1181dbc2 177e8697

+18
+1
dots
··· 46 46 "waybar": HOME / ".config" / "waybar", 47 47 "starship/starship.toml": HOME / ".config" / "starship.toml", 48 48 "keyd/default.conf": Path("/etc/keyd/default.conf"), 49 + "ipython/ipython_config.py": HOME / ".ipython/profile_default/startup/ipython_config.py" 49 50 } 50 51 51 52 REPO_DIR = Path(__file__).resolve().parent
+17
ipython/ipython_config.py
··· 1 + import datetime as dt 2 + from pathlib import Path 3 + 4 + # The name of the logfile to use. 5 + logfile_dir = Path('~/projects/ipython-logs').expanduser() 6 + logfile_dir.mkdir(parents=True, exist_ok=True) 7 + now = dt.datetime.now().astimezone() 8 + logfile_fn = logfile_dir / f'automatic-log--{now:%Y-%m-%dT%H-%M-%Z}.py' 9 + # make sure file exists 10 + logfile_fn.touch() 11 + 12 + # set the logfile 13 + c.TerminalInteractiveShell.logfile = logfile_fn 14 + 15 + 16 + # Start logging to the default log file. 17 + c.TerminalInteractiveShell.logstart = True