Show More
@@ -1,9 +1,10 b'' | |||||
1 | // Copyright (c) IPython Development Team. |
|
1 | // Copyright (c) IPython Development Team. | |
2 | // Distributed under the terms of the Modified BSD License. |
|
2 | // Distributed under the terms of the Modified BSD License. | |
3 |
|
3 | |||
4 | require(['base/js/namespace', 'base/js/page'], function(IPython, Page) { |
|
4 | var ipython = ipython || {}; | |
5 | IPython.page = new Page(); |
|
5 | require(['base/js/page'], function(Page) { | |
|
6 | ipython.page = new Page(); | |||
6 | $('button#login_submit').addClass("btn btn-default"); |
|
7 | $('button#login_submit').addClass("btn btn-default"); | |
7 |
|
|
8 | ipython.page.show(); | |
8 | $('input#password_input').focus(); |
|
9 | $('input#password_input').focus(); | |
9 | }); |
|
10 | }); |
@@ -1,8 +1,9 b'' | |||||
1 | // Copyright (c) IPython Development Team. |
|
1 | // Copyright (c) IPython Development Team. | |
2 | // Distributed under the terms of the Modified BSD License. |
|
2 | // Distributed under the terms of the Modified BSD License. | |
|
3 | var ipython = ipython || {}; | |||
3 |
|
4 | |||
4 |
require([ |
|
5 | require(['base/js/page'], function(Page) { | |
5 |
|
|
6 | ipython.page = new Page(); | |
6 | $('#ipython-main-app').addClass('border-box-sizing'); |
|
7 | $('#ipython-main-app').addClass('border-box-sizing'); | |
7 |
|
|
8 | ipython.page.show(); | |
8 | }); |
|
9 | }); |
@@ -11,15 +11,10 b" define(['base/js/namespace'], function(IPython) {" | |||||
11 | "use strict"; |
|
11 | "use strict"; | |
12 |
|
12 | |||
13 | var Events = function () {}; |
|
13 | var Events = function () {}; | |
14 | events = new Events(); |
|
14 | ||
15 |
|
||||
16 | // Backwards compatability. |
|
15 | // Backwards compatability. | |
17 | IPython.Events = Events; |
|
16 | IPython.Events = Events; | |
18 | IPython.events = events; |
|
|||
19 |
|
17 | |||
20 | // This behavior is an akward exception to the normal design pattern of |
|
18 | // TODO: Fix events. | |
21 | // returning the namespace. Events are used eveywhere in IPython, |
|
19 | return Events; | |
22 | // and only one instance is ever used. For convenience, create and |
|
|||
23 | // return that instance here instead of the namespace. |
|
|||
24 | return events; |
|
|||
25 | }); |
|
20 | }); |
@@ -1,7 +1,8 b'' | |||||
1 | // Copyright (c) IPython Development Team. |
|
1 | // Copyright (c) IPython Development Team. | |
2 | // Distributed under the terms of the Modified BSD License. |
|
2 | // Distributed under the terms of the Modified BSD License. | |
3 |
|
3 | |||
4 | require(['base/js/namespace', 'base/js/page'], function(IPython, Page) { |
|
4 | var ipython = ipython || {}; | |
5 | IPython.page = new Page(); |
|
5 | require(['base/js/page'], function(Page) { | |
6 |
|
|
6 | ipython.page = new Page(); | |
|
7 | ipython.page.show(); | |||
7 | }); |
|
8 | }); |
@@ -1,6 +1,7 b'' | |||||
1 | // Copyright (c) IPython Development Team. |
|
1 | // Copyright (c) IPython Development Team. | |
2 | // Distributed under the terms of the Modified BSD License. |
|
2 | // Distributed under the terms of the Modified BSD License. | |
3 |
|
3 | |||
|
4 | var ipython = ipython || {}; | |||
4 | require([ |
|
5 | require([ | |
5 | 'base/js/namespace', |
|
6 | 'base/js/namespace', | |
6 | 'notebook/js/notebook', |
|
7 | 'notebook/js/notebook', | |
@@ -83,15 +84,13 b' require([' | |||||
83 | $([Events]).trigger('app_initialized.NotebookApp'); |
|
84 | $([Events]).trigger('app_initialized.NotebookApp'); | |
84 | notebook.load_notebook(opts.notebook_name, opts.notebook_path); |
|
85 | notebook.load_notebook(opts.notebook_name, opts.notebook_path); | |
85 |
|
86 | |||
86 | // Backwards compatability. |
|
87 | ipython.page = page; | |
87 | IPython.page = page; |
|
88 | ipython.layout_manager = layout_manager; | |
88 | IPython.layout_manager = layout_manager; |
|
89 | ipython.notebook = notebook; | |
89 | IPython.notebook = notebook; |
|
90 | ipython.pager = pager; | |
90 | IPython.pager = pager; |
|
91 | ipython.quick_help = quick_help; | |
91 | IPython.quick_help = quick_help; |
|
92 | ipython.login_widget = login_widget; | |
92 | IPython.login_widget = login_widget; |
|
93 | ipython.menubar = menubar; | |
93 |
|
|
94 | ipython.toolbar = toolbar; | |
94 | IPython.toolbar = toolbar; |
|
95 | ipython.notification_area = notification_area; | |
95 | IPython.notification_area = notification_area; |
|
|||
96 | IPython.notification_area = notification_area; |
|
|||
97 | }); |
|
96 | }); |
@@ -1,7 +1,8 b'' | |||||
1 | // Copyright (c) IPython Development Team. |
|
1 | // Copyright (c) IPython Development Team. | |
2 | // Distributed under the terms of the Modified BSD License. |
|
2 | // Distributed under the terms of the Modified BSD License. | |
3 |
|
3 | |||
4 | define([ |
|
4 | var ipython = ipython || {}; | |
|
5 | require([ | |||
5 | 'base/js/namespace', |
|
6 | 'base/js/namespace', | |
6 | 'components/jquery/jquery.min', |
|
7 | 'components/jquery/jquery.min', | |
7 | 'base/js/page', |
|
8 | 'base/js/page', | |
@@ -100,12 +101,10 b' define([' | |||||
100 | } |
|
101 | } | |
101 |
|
102 | |||
102 | // For backwards compatability. |
|
103 | // For backwards compatability. | |
103 |
|
|
104 | ipython.page = page; | |
104 |
|
|
105 | ipython.notebook_list = notebook_list; | |
105 |
|
|
106 | ipython.cluster_list = cluster_list; | |
106 |
|
|
107 | ipython.session_list = session_list; | |
107 |
|
|
108 | ipython.kernel_list = kernel_list; | |
108 |
|
|
109 | ipython.login_widget = login_widget; | |
109 |
|
||||
110 | return page; |
|
|||
111 | }); |
|
110 | }); |
@@ -110,5 +110,5 b' data-notebook-path="{{notebook_path}}"' | |||||
110 | {% endblock %} |
|
110 | {% endblock %} | |
111 |
|
111 | |||
112 | {% block script %} |
|
112 | {% block script %} | |
113 |
<script src="{{ static_url("tree/js/ |
|
113 | <script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script> | |
114 | {% endblock %} |
|
114 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now