Replies: 1 comment
-
The short answer is "no". IPython (and Jupyter Notebooks by extension) have no direct connection to the variables you're using in an external programming language called via a magic (like When you assigned to Likewise, when you write As to your last question about how to retrieve output from a bash script in one cell via Jupyter/IPython wizardry, your Further Reading
|
Beta Was this translation helpful? Give feedback.
-
Hi,
using this
I get the
a
list['1', '2', '3']
.Is there a way to get the
i
value and print it in python at the end of the loop?Something like (that I know, it does not work):
A way to do it, is to split in two cells and use
%%bash --out
. Is there no way to write in a single cell long bash code and get a variable value to use it in some python code?Thank you
Beta Was this translation helpful? Give feedback.
All reactions