neurobooth_os.netcomm.get_fprint

neurobooth_os.netcomm.get_fprint(current_node, target_node='control')[source]

Return function to capture prints for sending to target_node.

Stdout is re-routed to target_node via socket connection.

Parameters
current_nodestr

Name of the node to be displayed, e.g. STM or ACQ

target_nodestr

PC node name defined in secrets_info.secrets

Returns
fprint_flushcallable

Print function that send message via socket to target_node.

old_stdoutobject

original Stdout before re-routing.