parent
368763d4cd
commit
d211ebf067
@ -0,0 +1,12 @@
|
||||
// Copyright (c) IPython Development Team.
|
||||
// Distributed under the terms of the Modified BSD License.
|
||||
|
||||
require([
|
||||
'jquery',
|
||||
'termjs',
|
||||
'custom/custom',
|
||||
], function(
|
||||
$,
|
||||
termjs){
|
||||
|
||||
});
|
||||
@ -0,0 +1,27 @@
|
||||
{% extends "page.html" %}
|
||||
|
||||
{% block title %}{{page_title}}{% endblock %}
|
||||
|
||||
|
||||
{% block params %}
|
||||
|
||||
data-base-url="{{base_url}}"
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block site %}
|
||||
|
||||
<div id="ipython-main-app" class="container">
|
||||
|
||||
<div id="terminado-container"/>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
{{super()}}
|
||||
|
||||
<script src="{{ static_url("terminal/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
|
||||
{% endblock %}
|
||||
@ -0,0 +1,24 @@
|
||||
"""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),
|
||||
]
|
||||
Loading…
Reference in new issue