diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index e8e920f34..fb59dc68d 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -190,6 +190,7 @@ class NotebookWebApplication(web.Application): handlers.extend(load_handlers('notebook.handlers')) handlers.extend(load_handlers('nbconvert.handlers')) handlers.extend(load_handlers('kernelspecs.handlers')) + handlers.extend(load_handlers('terminal.handlers')) handlers.extend(load_handlers('services.kernels.handlers')) handlers.extend(load_handlers('services.contents.handlers')) handlers.extend(load_handlers('services.clusters.handlers')) diff --git a/IPython/html/static/terminal/js/main.js b/IPython/html/static/terminal/js/main.js new file mode 100644 index 000000000..bb459686e --- /dev/null +++ b/IPython/html/static/terminal/js/main.js @@ -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){ + +}); diff --git a/IPython/html/templates/page.html b/IPython/html/templates/page.html index cc8adb1b2..b3c67b821 100644 --- a/IPython/html/templates/page.html +++ b/IPython/html/templates/page.html @@ -29,6 +29,7 @@ highlight: 'components/highlight.js/build/highlight.pack', moment: "components/moment/moment", codemirror: 'components/codemirror', + termjs: "components/term.js/src/term" }, shim: { underscore: { diff --git a/IPython/html/templates/terminal.html b/IPython/html/templates/terminal.html new file mode 100644 index 000000000..ce75205e5 --- /dev/null +++ b/IPython/html/templates/terminal.html @@ -0,0 +1,27 @@ +{% extends "page.html" %} + +{% block title %}{{page_title}}{% endblock %} + + +{% block params %} + +data-base-url="{{base_url}}" + +{% endblock %} + + +{% block site %} + +