5
$\begingroup$

I tried to get a value from a python session to show up in a dynamic cell:

enter image description here

First run:

Dynamic[ExternalEvaluate[CurrentValue[
   EvaluationNotebook[], {TaggingRules, "ExternalSessions", "Python"}], "i"], 
 UpdateInterval -> 0]

Then run this in a python code cell:

global i
import time 
for x in range(10):
    time.sleep(1)
    i = x
    print(x)

But it doesn't seem to work, is something like this even possible?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.