Mercurial > hg > Members > aka > jupyter_CbC_kernel
changeset 7:aa54c85303b6
Remove temporary files when shutting down the kernel
author | Brendan Rius <brendan@omixy.com> |
---|---|
date | Fri, 25 Mar 2016 14:52:13 +0000 |
parents | 6455ec6914b3 |
children | ca8f6aa0f6ed |
files | c_kernel/kernel.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/c_kernel/kernel.py Fri Mar 25 14:36:42 2016 +0000 +++ b/c_kernel/kernel.py Fri Mar 25 14:52:13 2016 +0000 @@ -77,3 +77,7 @@ stream_content = {'name': 'stdout', 'text': stdout} self.send_response(self.iopub_socket, 'stream', stream_content) return {'status': 'ok', 'execution_count': self.execution_count, 'payload': [], 'user_expressions': {}} + + def do_shutdown(self, restart): + """Cleanup the created source code files and executables when shutting down the kernel""" + self.cleanup_files()