neuroscience research development environment demo

Опубликовано: 14 Май 2026
на канале: Philip Roberts
24
0

environment: wsl, tmux, vim
terminal: windows terminal
python3 modules: numpy, plotext for term plots

note the function I wrote at the top of the file after the imports. it remembers the last time my python file(s) was modified, and if that timestamp changes (due to a modification), then it restarts my program in place. this is so I don't have to switch tmux panes, sigint, restart my program, and switch back to my editor pane. this solution only halfway works because if I introduce an error to the program it completely fails. I think I want to write an external handler in C that restarts python scripts on modification and on failure, with exponential backoff.