Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
15
venv/Lib/site-packages/notebook/services/shutdown.py
Normal file
15
venv/Lib/site-packages/notebook/services/shutdown.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"""HTTP handler to shut down the notebook server.
|
||||
"""
|
||||
from tornado import web, ioloop
|
||||
from notebook.base.handlers import IPythonHandler
|
||||
|
||||
class ShutdownHandler(IPythonHandler):
|
||||
@web.authenticated
|
||||
def post(self):
|
||||
self.log.info("Shutting down on /api/shutdown request.")
|
||||
ioloop.IOLoop.current().stop()
|
||||
|
||||
|
||||
default_handlers = [
|
||||
(r"/api/shutdown", ShutdownHandler),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue