Show More
@@ -0,0 +1,12 b'' | |||||
|
1 | // Copyright (c) IPython Development Team. | |||
|
2 | // Distributed under the terms of the Modified BSD License. | |||
|
3 | ||||
|
4 | require([ | |||
|
5 | 'jquery', | |||
|
6 | 'termjs', | |||
|
7 | 'custom/custom', | |||
|
8 | ], function( | |||
|
9 | $, | |||
|
10 | termjs){ | |||
|
11 | ||||
|
12 | }); |
@@ -0,0 +1,27 b'' | |||||
|
1 | {% extends "page.html" %} | |||
|
2 | ||||
|
3 | {% block title %}{{page_title}}{% endblock %} | |||
|
4 | ||||
|
5 | ||||
|
6 | {% block params %} | |||
|
7 | ||||
|
8 | data-base-url="{{base_url}}" | |||
|
9 | ||||
|
10 | {% endblock %} | |||
|
11 | ||||
|
12 | ||||
|
13 | {% block site %} | |||
|
14 | ||||
|
15 | <div id="ipython-main-app" class="container"> | |||
|
16 | ||||
|
17 | <div id="terminado-container"/> | |||
|
18 | ||||
|
19 | </div> | |||
|
20 | ||||
|
21 | {% endblock %} | |||
|
22 | ||||
|
23 | {% block script %} | |||
|
24 | {{super()}} | |||
|
25 | ||||
|
26 | <script src="{{ static_url("terminal/js/main.js") }}" type="text/javascript" charset="utf-8"></script> | |||
|
27 | {% endblock %} |
1 | NO CONTENT: new file 100644 |
|
NO CONTENT: new file 100644 |
@@ -0,0 +1,24 b'' | |||||
|
1 | """Tornado handlers for the terminal emulator.""" | |||
|
2 | ||||
|
3 | # Copyright (c) IPython Development Team. | |||
|
4 | # Distributed under the terms of the Modified BSD License. | |||
|
5 | ||||
|
6 | from tornado import web | |||
|
7 | from ..base.handlers import IPythonHandler | |||
|
8 | ||||
|
9 | ||||
|
10 | class TerminalHandler(IPythonHandler): | |||
|
11 | """Render the tree view, listing notebooks, clusters, etc.""" | |||
|
12 | @web.authenticated | |||
|
13 | def get(self, path='', name=None): | |||
|
14 | self.write(self.render_template('terminal.html')) | |||
|
15 | ||||
|
16 | ||||
|
17 | #----------------------------------------------------------------------------- | |||
|
18 | # URL to handler mappings | |||
|
19 | #----------------------------------------------------------------------------- | |||
|
20 | ||||
|
21 | ||||
|
22 | default_handlers = [ | |||
|
23 | (r"/terminal", TerminalHandler), | |||
|
24 | ] |
@@ -190,6 +190,7 b' class NotebookWebApplication(web.Application):' | |||||
190 | handlers.extend(load_handlers('notebook.handlers')) |
|
190 | handlers.extend(load_handlers('notebook.handlers')) | |
191 | handlers.extend(load_handlers('nbconvert.handlers')) |
|
191 | handlers.extend(load_handlers('nbconvert.handlers')) | |
192 | handlers.extend(load_handlers('kernelspecs.handlers')) |
|
192 | handlers.extend(load_handlers('kernelspecs.handlers')) | |
|
193 | handlers.extend(load_handlers('terminal.handlers')) | |||
193 | handlers.extend(load_handlers('services.kernels.handlers')) |
|
194 | handlers.extend(load_handlers('services.kernels.handlers')) | |
194 | handlers.extend(load_handlers('services.contents.handlers')) |
|
195 | handlers.extend(load_handlers('services.contents.handlers')) | |
195 | handlers.extend(load_handlers('services.clusters.handlers')) |
|
196 | handlers.extend(load_handlers('services.clusters.handlers')) |
@@ -29,6 +29,7 b'' | |||||
29 | highlight: 'components/highlight.js/build/highlight.pack', |
|
29 | highlight: 'components/highlight.js/build/highlight.pack', | |
30 | moment: "components/moment/moment", |
|
30 | moment: "components/moment/moment", | |
31 | codemirror: 'components/codemirror', |
|
31 | codemirror: 'components/codemirror', | |
|
32 | termjs: "components/term.js/src/term" | |||
32 | }, |
|
33 | }, | |
33 | shim: { |
|
34 | shim: { | |
34 | underscore: { |
|
35 | underscore: { |
General Comments 0
You need to be logged in to leave comments.
Login now