def cleanup_consoles(self):
        for c in self.consoles:
            c.kill()
        self.consoles = []
Kill all existing consoles.
dataset/ETHPy150Open enthought/envisage/envisage/plugins/ipython_kernel/internal_ipkernel.py/InternalIPKernel.cleanup_consoles