In [1]: %%bash
ls
In [2]: print(# previous out of ls #)
I want to read the output of the bash cell in the following python cell in jupyter
In [1]: %%bash
ls
In [2]: print(# previous out of ls #)
I want to read the output of the bash cell in the following python cell in jupyter
Jupyter is not really designed for this, but this answer suggests a workaround.