3 ms·
This is very neat at the CLI. However I always keep a terminal tab/pane with ptpython open. Add math, os, sys, datetime, work libs, etc. to your startup file
by mixmastamyk 4y ago
This is very neat at the CLI. However I always keep a terminal tab/pane with ptpython open. Add math, os, sys, datetime, work libs, etc. to your startup file (see below). With pip, it’s incredible.
https://www.assertnotmagic.com/2018/06/30/python-startup-file/ https://www.assertnotmagic.com/2018/06/30/python-startup-fil...
- LanceH 4y agoI write out calculations in an emacs lisp buffer. This lets me adjust them, correct typos, or save the whole thing.
- noisy_boy 4y agoI often forget to quote * which results in multiplications not working when done using the function approach mentioned above. No such issues with the startup approach. Plus I can store the results in variables and play with them (anything more complicated is more suited for LibreOffice Calc).
- Siira 4y agoalias calc='noglob calc-actual-implementation' Disables globs for that particular command in Zsh.