https://github.com/coecms/nci_scripts/blob/978e705370cb3e695d5cfc54a9228d9cb18dd778/vdi_jupyter.py#L99 See https://pexpect.readthedocs.io/en/stable/overview.html#pexpect-on-windows