<div dir="ltr">How can I get the output of a python shell?<br><br>This is what I'm trying to do:<br>> Port = open_port({spawn, "python"}, [binary, exit_status]).<br>#Port<0.586><br>> port_command(Port, "print 1\n").<br>
true<br>> flush().<br>ok<br><br>When calling flush(), I expect to get {Port,{data, <<"1\n">>}}<br>but I'm not getting any message.<br><br>Thanks<br></div>