%system: Shell execute - run shell command and capture output (!! is short-hand).
%system has two aliases:
To run a system command in IPython, like
ls, you can put a single leading
! in front of it, e.g.
In : !ls LICENSE README.md book book.toml deploy.sh src
!! is the short-hand for
%sx. The difference between using single or double exclamation points is that
!! returns the results in a list that is split on
\n, and since it is returned, it will be stored in the output history.
In : !!ls Out: ['LICENSE', 'README.md', 'book', 'book.toml', 'deploy.sh', 'src']