I know how to run a script in the notebook (for example this post). Now the question is how can I read the result of the shell script in python?
For example, we have an echo "hi" command, or we call a shell script, and we want to read the printed message on the console in python.