Are you using Jupyter (or IPython)? Want to run a Unix command without opening a terminal window or shell? You can do it with the ! (exclamation point, or "bang") character.
It turns out that's just the start, though - you can pass Python variables to the shell, and you can get results back from it in a special data structure packed with functionality.
Don't forget my free, weekly "Better developers" newsletter, about Python and software engineering, at BetterDevelopersWeekly.com
7 июн 2023