示例#1
0
 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()
示例#2
0
 def stop(self):
     self._stop_formgrader()
     self._stop_jupyterhub()
     copy_coverage_files()
示例#3
0
 def stop(self):
     self._stop_formgrader()
     self._stop_jupyterhub()
     copy_coverage_files()