I really like the ability of jupyter to mix bash commands inline like this:
for d in list_of_dirs:
! ls {d}
However, is there any way to get the output of one of these inline commands to be assigned to a python variable? For example as a python list?