Consider the following command.
CellPrint[Cell["[1,2,3]", "ExternalLanguage"]]
It creates a python cell with command [1,2,3].
If evaluated then the result is {1,2,3}
Is there a way to Evaluate the cell expression programmatically and get the result in a variable. Like following,
result=CellEvaluate[Cell["[1,2,3]", "ExternalLanguage"]];
So now the result variable contains {1,2,3}.
ExternalEvalute? – b3m2a1 Feb 04 '19 at 22:17ExternalEvaluate["Python","..."]then this does not have access to those definitions since they both use different kernel session of python. This is a bug which is confirmed to be fixed in 12.0 but i want some workaround now. – user13892 Feb 04 '19 at 22:23CellEvaluationFunctionthen. I'll post an answer. – b3m2a1 Feb 04 '19 at 22:24