These are chat archives for ipython/ipython
tm.terminals[name].ptyproc.terminate()does the job, but it's an ugly hack for bypassing the various methods designed for killing the terminal. Ultimately, the
terminatemethod tries the various ways of killing the process, but it isn't really exposed outside of the ptyprocess layer.
export SHELL=/bin/bashand then run ipython notebook, the terminals act as expected