You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
699 B

"""Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the tree view, listing notebooks, clusters, etc."""
@web.authenticated
def get(self, path='', name=None):
self.write(self.render_template('terminal.html'))
#-----------------------------------------------------------------------------
# URL to handler mappings
#-----------------------------------------------------------------------------
default_handlers = [
(r"/terminal", TerminalHandler),
]