Enter to send·Shift+Enter new line
on_end: Optional[Callable[[run_trees.RunTree], Any]]
Optional callback function to be called after the run ends and is sent.