def fin(): nbserver.send_signal(15) # SIGTERM for i in range(10): retcode = nbserver.poll() if retcode is not None: break time.sleep(0.1) if retcode is None: print("couldn't shutdown notebook server, force killing it") nbserver.kill() copy_coverage_files()
def stop(self): self._stop_formgrader() self._stop_jupyterhub() copy_coverage_files()