Run a subprocess in a pseudo terminal
conda install anaconda::ptyprocess
Ptyprocess allows you to launch a subprocess in a pseudo terminal (pty), and interact with both the process and its pty.