##// END OF EJS Templates
add menu item for undo delete cell...
MinRK -
Show More
@@ -1,198 +1,201 b''
1 //----------------------------------------------------------------------------
1 //----------------------------------------------------------------------------
2 // Copyright (C) 2008-2011 The IPython Development Team
2 // Copyright (C) 2008-2011 The IPython Development Team
3 //
3 //
4 // Distributed under the terms of the BSD License. The full license is in
4 // Distributed under the terms of the BSD License. The full license is in
5 // the file COPYING, distributed as part of this software.
5 // the file COPYING, distributed as part of this software.
6 //----------------------------------------------------------------------------
6 //----------------------------------------------------------------------------
7
7
8 //============================================================================
8 //============================================================================
9 // MenuBar
9 // MenuBar
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13
13
14 var MenuBar = function (selector) {
14 var MenuBar = function (selector) {
15 this.selector = selector;
15 this.selector = selector;
16 if (this.selector !== undefined) {
16 if (this.selector !== undefined) {
17 this.element = $(selector);
17 this.element = $(selector);
18 this.style();
18 this.style();
19 this.bind_events();
19 this.bind_events();
20 }
20 }
21 };
21 };
22
22
23
23
24 MenuBar.prototype.style = function () {
24 MenuBar.prototype.style = function () {
25 this.element.addClass('border-box-sizing');
25 this.element.addClass('border-box-sizing');
26 $('ul#menus').menubar({
26 $('ul#menus').menubar({
27 select : function (event, ui) {
27 select : function (event, ui) {
28 // The selected cell loses focus when the menu is entered, so we
28 // The selected cell loses focus when the menu is entered, so we
29 // re-select it upon selection.
29 // re-select it upon selection.
30 var i = IPython.notebook.get_selected_index();
30 var i = IPython.notebook.get_selected_index();
31 IPython.notebook.select(i);
31 IPython.notebook.select(i);
32 }
32 }
33 });
33 });
34 };
34 };
35
35
36
36
37 MenuBar.prototype.bind_events = function () {
37 MenuBar.prototype.bind_events = function () {
38 // File
38 // File
39 this.element.find('#new_notebook').click(function () {
39 this.element.find('#new_notebook').click(function () {
40 window.open($('body').data('baseProjectUrl')+'new');
40 window.open($('body').data('baseProjectUrl')+'new');
41 });
41 });
42 this.element.find('#open_notebook').click(function () {
42 this.element.find('#open_notebook').click(function () {
43 window.open($('body').data('baseProjectUrl'));
43 window.open($('body').data('baseProjectUrl'));
44 });
44 });
45 this.element.find('#rename_notebook').click(function () {
45 this.element.find('#rename_notebook').click(function () {
46 IPython.save_widget.rename_notebook();
46 IPython.save_widget.rename_notebook();
47 });
47 });
48 this.element.find('#copy_notebook').click(function () {
48 this.element.find('#copy_notebook').click(function () {
49 var notebook_id = IPython.notebook.get_notebook_id();
49 var notebook_id = IPython.notebook.get_notebook_id();
50 var url = $('body').data('baseProjectUrl') + notebook_id + '/copy';
50 var url = $('body').data('baseProjectUrl') + notebook_id + '/copy';
51 window.open(url,'_blank');
51 window.open(url,'_blank');
52 return false;
52 return false;
53 });
53 });
54 this.element.find('#save_notebook').click(function () {
54 this.element.find('#save_notebook').click(function () {
55 IPython.notebook.save_notebook();
55 IPython.notebook.save_notebook();
56 });
56 });
57 this.element.find('#download_ipynb').click(function () {
57 this.element.find('#download_ipynb').click(function () {
58 var notebook_id = IPython.notebook.get_notebook_id();
58 var notebook_id = IPython.notebook.get_notebook_id();
59 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
59 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
60 notebook_id + '?format=json';
60 notebook_id + '?format=json';
61 window.location.assign(url);
61 window.location.assign(url);
62 });
62 });
63 this.element.find('#download_py').click(function () {
63 this.element.find('#download_py').click(function () {
64 var notebook_id = IPython.notebook.get_notebook_id();
64 var notebook_id = IPython.notebook.get_notebook_id();
65 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
65 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
66 notebook_id + '?format=py';
66 notebook_id + '?format=py';
67 window.location.assign(url);
67 window.location.assign(url);
68 });
68 });
69 this.element.find('button#print_notebook').click(function () {
69 this.element.find('button#print_notebook').click(function () {
70 IPython.print_widget.print_notebook();
70 IPython.print_widget.print_notebook();
71 });
71 });
72 this.element.find('#kill_and_exit').click(function () {
72 this.element.find('#kill_and_exit').click(function () {
73 IPython.notebook.kernel.kill();
73 IPython.notebook.kernel.kill();
74 setTimeout(function(){window.close();}, 200);
74 setTimeout(function(){window.close();}, 200);
75 });
75 });
76 // Edit
76 // Edit
77 this.element.find('#cut_cell').click(function () {
77 this.element.find('#cut_cell').click(function () {
78 IPython.notebook.cut_cell();
78 IPython.notebook.cut_cell();
79 });
79 });
80 this.element.find('#copy_cell').click(function () {
80 this.element.find('#copy_cell').click(function () {
81 IPython.notebook.copy_cell();
81 IPython.notebook.copy_cell();
82 });
82 });
83 this.element.find('#delete_cell').click(function () {
83 this.element.find('#delete_cell').click(function () {
84 IPython.notebook.delete_cell();
84 IPython.notebook.delete_cell();
85 });
85 });
86 this.element.find('#undelete_cell').click(function () {
87 IPython.notebook.undelete();
88 });
86 this.element.find('#split_cell').click(function () {
89 this.element.find('#split_cell').click(function () {
87 IPython.notebook.split_cell();
90 IPython.notebook.split_cell();
88 });
91 });
89 this.element.find('#merge_cell_above').click(function () {
92 this.element.find('#merge_cell_above').click(function () {
90 IPython.notebook.merge_cell_above();
93 IPython.notebook.merge_cell_above();
91 });
94 });
92 this.element.find('#merge_cell_below').click(function () {
95 this.element.find('#merge_cell_below').click(function () {
93 IPython.notebook.merge_cell_below();
96 IPython.notebook.merge_cell_below();
94 });
97 });
95 this.element.find('#move_cell_up').click(function () {
98 this.element.find('#move_cell_up').click(function () {
96 IPython.notebook.move_cell_up();
99 IPython.notebook.move_cell_up();
97 });
100 });
98 this.element.find('#move_cell_down').click(function () {
101 this.element.find('#move_cell_down').click(function () {
99 IPython.notebook.move_cell_down();
102 IPython.notebook.move_cell_down();
100 });
103 });
101 this.element.find('#select_previous').click(function () {
104 this.element.find('#select_previous').click(function () {
102 IPython.notebook.select_prev();
105 IPython.notebook.select_prev();
103 });
106 });
104 this.element.find('#select_next').click(function () {
107 this.element.find('#select_next').click(function () {
105 IPython.notebook.select_next();
108 IPython.notebook.select_next();
106 });
109 });
107 // View
110 // View
108 this.element.find('#toggle_header').click(function () {
111 this.element.find('#toggle_header').click(function () {
109 $('div#header').toggle();
112 $('div#header').toggle();
110 IPython.layout_manager.do_resize();
113 IPython.layout_manager.do_resize();
111 });
114 });
112 this.element.find('#toggle_toolbar').click(function () {
115 this.element.find('#toggle_toolbar').click(function () {
113 IPython.toolbar.toggle();
116 IPython.toolbar.toggle();
114 });
117 });
115 // Insert
118 // Insert
116 this.element.find('#insert_cell_above').click(function () {
119 this.element.find('#insert_cell_above').click(function () {
117 IPython.notebook.insert_cell_above('code');
120 IPython.notebook.insert_cell_above('code');
118 });
121 });
119 this.element.find('#insert_cell_below').click(function () {
122 this.element.find('#insert_cell_below').click(function () {
120 IPython.notebook.insert_cell_below('code');
123 IPython.notebook.insert_cell_below('code');
121 });
124 });
122 // Cell
125 // Cell
123 this.element.find('#run_cell').click(function () {
126 this.element.find('#run_cell').click(function () {
124 IPython.notebook.execute_selected_cell();
127 IPython.notebook.execute_selected_cell();
125 });
128 });
126 this.element.find('#run_cell_in_place').click(function () {
129 this.element.find('#run_cell_in_place').click(function () {
127 IPython.notebook.execute_selected_cell({terminal:true});
130 IPython.notebook.execute_selected_cell({terminal:true});
128 });
131 });
129 this.element.find('#run_all_cells').click(function () {
132 this.element.find('#run_all_cells').click(function () {
130 IPython.notebook.execute_all_cells();
133 IPython.notebook.execute_all_cells();
131 }).attr('title', 'Run all cells in the notebook');
134 }).attr('title', 'Run all cells in the notebook');
132 this.element.find('#run_all_cells_above').click(function () {
135 this.element.find('#run_all_cells_above').click(function () {
133 IPython.notebook.execute_cells_above();
136 IPython.notebook.execute_cells_above();
134 }).attr('title', 'Run all cells above (but not including) this cell');
137 }).attr('title', 'Run all cells above (but not including) this cell');
135 this.element.find('#run_all_cells_below').click(function () {
138 this.element.find('#run_all_cells_below').click(function () {
136 IPython.notebook.execute_cells_below();
139 IPython.notebook.execute_cells_below();
137 }).attr('title', 'Run this cell and all cells below it');
140 }).attr('title', 'Run this cell and all cells below it');
138 this.element.find('#to_code').click(function () {
141 this.element.find('#to_code').click(function () {
139 IPython.notebook.to_code();
142 IPython.notebook.to_code();
140 });
143 });
141 this.element.find('#to_markdown').click(function () {
144 this.element.find('#to_markdown').click(function () {
142 IPython.notebook.to_markdown();
145 IPython.notebook.to_markdown();
143 });
146 });
144 this.element.find('#to_raw').click(function () {
147 this.element.find('#to_raw').click(function () {
145 IPython.notebook.to_raw();
148 IPython.notebook.to_raw();
146 });
149 });
147 this.element.find('#to_heading1').click(function () {
150 this.element.find('#to_heading1').click(function () {
148 IPython.notebook.to_heading(undefined, 1);
151 IPython.notebook.to_heading(undefined, 1);
149 });
152 });
150 this.element.find('#to_heading2').click(function () {
153 this.element.find('#to_heading2').click(function () {
151 IPython.notebook.to_heading(undefined, 2);
154 IPython.notebook.to_heading(undefined, 2);
152 });
155 });
153 this.element.find('#to_heading3').click(function () {
156 this.element.find('#to_heading3').click(function () {
154 IPython.notebook.to_heading(undefined, 3);
157 IPython.notebook.to_heading(undefined, 3);
155 });
158 });
156 this.element.find('#to_heading4').click(function () {
159 this.element.find('#to_heading4').click(function () {
157 IPython.notebook.to_heading(undefined, 4);
160 IPython.notebook.to_heading(undefined, 4);
158 });
161 });
159 this.element.find('#to_heading5').click(function () {
162 this.element.find('#to_heading5').click(function () {
160 IPython.notebook.to_heading(undefined, 5);
163 IPython.notebook.to_heading(undefined, 5);
161 });
164 });
162 this.element.find('#to_heading6').click(function () {
165 this.element.find('#to_heading6').click(function () {
163 IPython.notebook.to_heading(undefined, 6);
166 IPython.notebook.to_heading(undefined, 6);
164 });
167 });
165 this.element.find('#toggle_output').click(function () {
168 this.element.find('#toggle_output').click(function () {
166 IPython.notebook.toggle_output();
169 IPython.notebook.toggle_output();
167 });
170 });
168 this.element.find('#collapse_all_output').click(function () {
171 this.element.find('#collapse_all_output').click(function () {
169 IPython.notebook.collapse_all_output();
172 IPython.notebook.collapse_all_output();
170 });
173 });
171 this.element.find('#scroll_all_output').click(function () {
174 this.element.find('#scroll_all_output').click(function () {
172 IPython.notebook.scroll_all_output();
175 IPython.notebook.scroll_all_output();
173 });
176 });
174 this.element.find('#expand_all_output').click(function () {
177 this.element.find('#expand_all_output').click(function () {
175 IPython.notebook.expand_all_output();
178 IPython.notebook.expand_all_output();
176 });
179 });
177 this.element.find('#clear_all_output').click(function () {
180 this.element.find('#clear_all_output').click(function () {
178 IPython.notebook.clear_all_output();
181 IPython.notebook.clear_all_output();
179 });
182 });
180 // Kernel
183 // Kernel
181 this.element.find('#int_kernel').click(function () {
184 this.element.find('#int_kernel').click(function () {
182 IPython.notebook.kernel.interrupt();
185 IPython.notebook.kernel.interrupt();
183 });
186 });
184 this.element.find('#restart_kernel').click(function () {
187 this.element.find('#restart_kernel').click(function () {
185 IPython.notebook.restart_kernel();
188 IPython.notebook.restart_kernel();
186 });
189 });
187 // Help
190 // Help
188 this.element.find('#keyboard_shortcuts').click(function () {
191 this.element.find('#keyboard_shortcuts').click(function () {
189 IPython.quick_help.show_keyboard_shortcuts();
192 IPython.quick_help.show_keyboard_shortcuts();
190 });
193 });
191 };
194 };
192
195
193
196
194 IPython.MenuBar = MenuBar;
197 IPython.MenuBar = MenuBar;
195
198
196 return IPython;
199 return IPython;
197
200
198 }(IPython));
201 }(IPython));
@@ -1,231 +1,232 b''
1 {% extends "page.html" %}
1 {% extends "page.html" %}
2
2
3 {% block stylesheet %}
3 {% block stylesheet %}
4
4
5 {% if mathjax_url %}
5 {% if mathjax_url %}
6 <script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full&delayStartupUntil=configured" charset="utf-8"></script>
6 <script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full&delayStartupUntil=configured" charset="utf-8"></script>
7 {% endif %}
7 {% endif %}
8 <script type="text/javascript">
8 <script type="text/javascript">
9 // MathJax disabled, set as null to distingish from *missing* MathJax,
9 // MathJax disabled, set as null to distingish from *missing* MathJax,
10 // where it will be undefined, and should prompt a dialog later.
10 // where it will be undefined, and should prompt a dialog later.
11 window.mathjax_url = "{{mathjax_url}}";
11 window.mathjax_url = "{{mathjax_url}}";
12 </script>
12 </script>
13
13
14 <link rel="stylesheet" href="{{ static_url("codemirror/lib/codemirror.css") }}">
14 <link rel="stylesheet" href="{{ static_url("codemirror/lib/codemirror.css") }}">
15 <link rel="stylesheet" href="{{ static_url("codemirror/theme/ipython.css") }}">
15 <link rel="stylesheet" href="{{ static_url("codemirror/theme/ipython.css") }}">
16
16
17 <link rel="stylesheet" href="{{ static_url("prettify/prettify.css") }}"/>
17 <link rel="stylesheet" href="{{ static_url("prettify/prettify.css") }}"/>
18
18
19 <link rel="stylesheet" href="{{ static_url("css/celltoolbar.css") }}" type="text/css" />
19 <link rel="stylesheet" href="{{ static_url("css/celltoolbar.css") }}" type="text/css" />
20
20
21 {{super()}}
21 {{super()}}
22
22
23 {% endblock %}
23 {% endblock %}
24
24
25 {% block params %}
25 {% block params %}
26
26
27 data-project={{project}}
27 data-project={{project}}
28 data-base-project-url={{base_project_url}}
28 data-base-project-url={{base_project_url}}
29 data-base-kernel-url={{base_kernel_url}}
29 data-base-kernel-url={{base_kernel_url}}
30 data-read-only={{read_only and not logged_in}}
30 data-read-only={{read_only and not logged_in}}
31 data-notebook-id={{notebook_id}}
31 data-notebook-id={{notebook_id}}
32 class="notebook_app"
32 class="notebook_app"
33
33
34 {% endblock %}
34 {% endblock %}
35
35
36
36
37 {% block header %}
37 {% block header %}
38
38
39 <span id="save_widget">
39 <span id="save_widget">
40 <span id="notebook_name"></span>
40 <span id="notebook_name"></span>
41 <span id="save_status"></span>
41 <span id="save_status"></span>
42 </span>
42 </span>
43
43
44 {% endblock %}
44 {% endblock %}
45
45
46
46
47 {% block site %}
47 {% block site %}
48
48
49 <div id="menubar_container">
49 <div id="menubar_container">
50 <div id="menubar">
50 <div id="menubar">
51 <ul id="menus">
51 <ul id="menus">
52 <li><a href="#">File</a>
52 <li><a href="#">File</a>
53 <ul>
53 <ul>
54 <li id="new_notebook"><a href="#">New</a></li>
54 <li id="new_notebook"><a href="#">New</a></li>
55 <li id="open_notebook"><a href="#">Open...</a></li>
55 <li id="open_notebook"><a href="#">Open...</a></li>
56 <hr/>
56 <hr/>
57 <li id="copy_notebook"><a href="#">Make a Copy...</a></li>
57 <li id="copy_notebook"><a href="#">Make a Copy...</a></li>
58 <li id="rename_notebook"><a href="#">Rename...</a></li>
58 <li id="rename_notebook"><a href="#">Rename...</a></li>
59 <li id="save_notebook"><a href="#">Save</a></li>
59 <li id="save_notebook"><a href="#">Save</a></li>
60 <hr/>
60 <hr/>
61 <li><a href="#">Download as</a>
61 <li><a href="#">Download as</a>
62 <ul>
62 <ul>
63 <li id="download_ipynb"><a href="#">IPython (.ipynb)</a></li>
63 <li id="download_ipynb"><a href="#">IPython (.ipynb)</a></li>
64 <li id="download_py"><a href="#">Python (.py)</a></li>
64 <li id="download_py"><a href="#">Python (.py)</a></li>
65 </ul>
65 </ul>
66 </li>
66 </li>
67 <!--<hr/>
67 <!--<hr/>
68 <li id="print_notebook"><a href="/{{notebook_id}}/print" target="_blank">Print View</a></li>-->
68 <li id="print_notebook"><a href="/{{notebook_id}}/print" target="_blank">Print View</a></li>-->
69 <hr/>
69 <hr/>
70 <li id="kill_and_exit"><a href="#" >Close and halt</a></li>
70 <li id="kill_and_exit"><a href="#" >Close and halt</a></li>
71 </ul>
71 </ul>
72 </li>
72 </li>
73 <li><a href="#">Edit</a>
73 <li><a href="#">Edit</a>
74 <ul>
74 <ul>
75 <li id="cut_cell"><a href="#">Cut Cell</a></li>
75 <li id="cut_cell"><a href="#">Cut Cell</a></li>
76 <li id="copy_cell"><a href="#">Copy Cell</a></li>
76 <li id="copy_cell"><a href="#">Copy Cell</a></li>
77 <li id="paste_cell_above" class="ui-state-disabled"><a href="#">Paste Cell Above</a></li>
77 <li id="paste_cell_above" class="ui-state-disabled"><a href="#">Paste Cell Above</a></li>
78 <li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Cell Below</a></li>
78 <li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Cell Below</a></li>
79 <li id="paste_cell_replace" class="ui-state-disabled"><a href="#">Paste Cell &amp; Replace</a></li>
79 <li id="paste_cell_replace" class="ui-state-disabled"><a href="#">Paste Cell &amp; Replace</a></li>
80 <li id="delete_cell"><a href="#">Delete</a></li>
80 <li id="delete_cell"><a href="#">Delete Cell</a></li>
81 <li id="undelete_cell"><a href="#">Undo Delete Cell</a></li>
81 <hr/>
82 <hr/>
82 <li id="split_cell"><a href="#">Split Cell</a></li>
83 <li id="split_cell"><a href="#">Split Cell</a></li>
83 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
84 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
84 <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li>
85 <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li>
85 <hr/>
86 <hr/>
86 <li id="move_cell_up"><a href="#">Move Cell Up</a></li>
87 <li id="move_cell_up"><a href="#">Move Cell Up</a></li>
87 <li id="move_cell_down"><a href="#">Move Cell Down</a></li>
88 <li id="move_cell_down"><a href="#">Move Cell Down</a></li>
88 <hr/>
89 <hr/>
89 <li id="select_previous"><a href="#">Select Previous Cell</a></li>
90 <li id="select_previous"><a href="#">Select Previous Cell</a></li>
90 <li id="select_next"><a href="#">Select Next Cell</a></li>
91 <li id="select_next"><a href="#">Select Next Cell</a></li>
91 </ul>
92 </ul>
92 </li>
93 </li>
93 <li><a href="#">View</a>
94 <li><a href="#">View</a>
94 <ul>
95 <ul>
95 <li id="toggle_header"><a href="#">Toggle Header</a></li>
96 <li id="toggle_header"><a href="#">Toggle Header</a></li>
96 <li id="toggle_toolbar"><a href="#">Toggle Toolbar</a></li>
97 <li id="toggle_toolbar"><a href="#">Toggle Toolbar</a></li>
97 </ul>
98 </ul>
98 </li>
99 </li>
99 <li><a href="#">Insert</a>
100 <li><a href="#">Insert</a>
100 <ul>
101 <ul>
101 <li id="insert_cell_above"><a href="#">Insert Cell Above</a></li>
102 <li id="insert_cell_above"><a href="#">Insert Cell Above</a></li>
102 <li id="insert_cell_below"><a href="#">Insert Cell Below</a></li>
103 <li id="insert_cell_below"><a href="#">Insert Cell Below</a></li>
103 </ul>
104 </ul>
104 </li>
105 </li>
105 <li><a href="#">Cell</a>
106 <li><a href="#">Cell</a>
106 <ul>
107 <ul>
107 <li id="run_cell"><a href="#">Run</a></li>
108 <li id="run_cell"><a href="#">Run</a></li>
108 <li id="run_cell_in_place"><a href="#">Run in Place</a></li>
109 <li id="run_cell_in_place"><a href="#">Run in Place</a></li>
109 <li id="run_all_cells"><a href="#">Run All</a></li>
110 <li id="run_all_cells"><a href="#">Run All</a></li>
110 <li id="run_all_cells_above"><a href="#">Run All Above</a></li>
111 <li id="run_all_cells_above"><a href="#">Run All Above</a></li>
111 <li id="run_all_cells_below"><a href="#">Run All Below</a></li>
112 <li id="run_all_cells_below"><a href="#">Run All Below</a></li>
112 <hr/>
113 <hr/>
113 <li id="to_code"><a href="#">Code</a></li>
114 <li id="to_code"><a href="#">Code</a></li>
114 <li id="to_markdown"><a href="#">Markdown </a></li>
115 <li id="to_markdown"><a href="#">Markdown </a></li>
115 <li id="to_raw"><a href="#">Raw Text</a></li>
116 <li id="to_raw"><a href="#">Raw Text</a></li>
116 <li id="to_heading1"><a href="#">Heading 1</a></li>
117 <li id="to_heading1"><a href="#">Heading 1</a></li>
117 <li id="to_heading2"><a href="#">Heading 2</a></li>
118 <li id="to_heading2"><a href="#">Heading 2</a></li>
118 <li id="to_heading3"><a href="#">Heading 3</a></li>
119 <li id="to_heading3"><a href="#">Heading 3</a></li>
119 <li id="to_heading4"><a href="#">Heading 4</a></li>
120 <li id="to_heading4"><a href="#">Heading 4</a></li>
120 <li id="to_heading5"><a href="#">Heading 5</a></li>
121 <li id="to_heading5"><a href="#">Heading 5</a></li>
121 <li id="to_heading6"><a href="#">Heading 6</a></li>
122 <li id="to_heading6"><a href="#">Heading 6</a></li>
122 <hr/>
123 <hr/>
123 <li id="toggle_output"><a href="#">Toggle Current Output</a></li>
124 <li id="toggle_output"><a href="#">Toggle Current Output</a></li>
124 <li id="all_outputs"><a href="#">All Output</a>
125 <li id="all_outputs"><a href="#">All Output</a>
125 <ul>
126 <ul>
126 <li id="expand_all_output"><a href="#">Expand</a></li>
127 <li id="expand_all_output"><a href="#">Expand</a></li>
127 <li id="scroll_all_output"><a href="#">Scroll Long</a></li>
128 <li id="scroll_all_output"><a href="#">Scroll Long</a></li>
128 <li id="collapse_all_output"><a href="#">Collapse</a></li>
129 <li id="collapse_all_output"><a href="#">Collapse</a></li>
129 <li id="clear_all_output"><a href="#">Clear</a></li>
130 <li id="clear_all_output"><a href="#">Clear</a></li>
130 </ul>
131 </ul>
131 </li>
132 </li>
132 </ul>
133 </ul>
133 </li>
134 </li>
134 <li><a href="#">Kernel</a>
135 <li><a href="#">Kernel</a>
135 <ul>
136 <ul>
136 <li id="int_kernel"><a href="#">Interrupt</a></li>
137 <li id="int_kernel"><a href="#">Interrupt</a></li>
137 <li id="restart_kernel"><a href="#">Restart</a></li>
138 <li id="restart_kernel"><a href="#">Restart</a></li>
138 </ul>
139 </ul>
139 </li>
140 </li>
140 <li><a href="#">Help</a>
141 <li><a href="#">Help</a>
141 <ul>
142 <ul>
142 <li><a href="http://ipython.org/documentation.html" target="_blank">IPython Help</a></li>
143 <li><a href="http://ipython.org/documentation.html" target="_blank">IPython Help</a></li>
143 <li><a href="http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html" target="_blank">Notebook Help</a></li>
144 <li><a href="http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html" target="_blank">Notebook Help</a></li>
144 <li id="keyboard_shortcuts"><a href="#">Keyboard Shortcuts</a></li>
145 <li id="keyboard_shortcuts"><a href="#">Keyboard Shortcuts</a></li>
145 <hr/>
146 <hr/>
146 <li><a href="http://docs.python.org" target="_blank">Python</a></li>
147 <li><a href="http://docs.python.org" target="_blank">Python</a></li>
147 <li><a href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a></li>
148 <li><a href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a></li>
148 <li><a href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a></li>
149 <li><a href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a></li>
149 <li><a href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a></li>
150 <li><a href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a></li>
150 <li><a href="http://matplotlib.sourceforge.net/" target="_blank">Matplotlib</a></li>
151 <li><a href="http://matplotlib.sourceforge.net/" target="_blank">Matplotlib</a></li>
151 </ul>
152 </ul>
152 </li>
153 </li>
153 </ul>
154 </ul>
154
155
155 </div>
156 </div>
156 <div id="notification_area">
157 <div id="notification_area">
157 </div>
158 </div>
158 </div>
159 </div>
159
160
160
161
161 <div id="maintoolbar"></div>
162 <div id="maintoolbar"></div>
162
163
163 <div id="ipython-main-app">
164 <div id="ipython-main-app">
164
165
165 <div id="notebook_panel">
166 <div id="notebook_panel">
166 <div id="notebook"></div>
167 <div id="notebook"></div>
167 <div id="pager_splitter"></div>
168 <div id="pager_splitter"></div>
168 <div id="pager_container">
169 <div id="pager_container">
169 <div id='pager_button_area'>
170 <div id='pager_button_area'>
170 </div>
171 </div>
171 <div id="pager"></div>
172 <div id="pager"></div>
172 </div>
173 </div>
173 </div>
174 </div>
174
175
175 </div>
176 </div>
176 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
177 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
177
178
178
179
179 {% endblock %}
180 {% endblock %}
180
181
181
182
182 {% block script %}
183 {% block script %}
183
184
184 {{super()}}
185 {{super()}}
185
186
186 <script src="{{ static_url("codemirror/lib/codemirror.js") }}" charset="utf-8"></script>
187 <script src="{{ static_url("codemirror/lib/codemirror.js") }}" charset="utf-8"></script>
187 <script src="{{ static_url("codemirror/lib/util/loadmode.js") }}" charset="utf-8"></script>
188 <script src="{{ static_url("codemirror/lib/util/loadmode.js") }}" charset="utf-8"></script>
188 <script src="{{ static_url("codemirror/lib/util/multiplex.js") }}" charset="utf-8"></script>
189 <script src="{{ static_url("codemirror/lib/util/multiplex.js") }}" charset="utf-8"></script>
189 <script src="{{ static_url("codemirror/mode/python/python.js") }}" charset="utf-8"></script>
190 <script src="{{ static_url("codemirror/mode/python/python.js") }}" charset="utf-8"></script>
190 <script src="{{ static_url("codemirror/mode/htmlmixed/htmlmixed.js") }}" charset="utf-8"></script>
191 <script src="{{ static_url("codemirror/mode/htmlmixed/htmlmixed.js") }}" charset="utf-8"></script>
191 <script src="{{ static_url("codemirror/mode/xml/xml.js") }}" charset="utf-8"></script>
192 <script src="{{ static_url("codemirror/mode/xml/xml.js") }}" charset="utf-8"></script>
192 <script src="{{ static_url("codemirror/mode/javascript/javascript.js") }}" charset="utf-8"></script>
193 <script src="{{ static_url("codemirror/mode/javascript/javascript.js") }}" charset="utf-8"></script>
193 <script src="{{ static_url("codemirror/mode/css/css.js") }}" charset="utf-8"></script>
194 <script src="{{ static_url("codemirror/mode/css/css.js") }}" charset="utf-8"></script>
194 <script src="{{ static_url("codemirror/mode/rst/rst.js") }}" charset="utf-8"></script>
195 <script src="{{ static_url("codemirror/mode/rst/rst.js") }}" charset="utf-8"></script>
195 <script src="{{ static_url("codemirror/mode/markdown/markdown.js") }}" charset="utf-8"></script>
196 <script src="{{ static_url("codemirror/mode/markdown/markdown.js") }}" charset="utf-8"></script>
196
197
197 <script src="{{ static_url("pagedown/Markdown.Converter.js") }}" charset="utf-8"></script>
198 <script src="{{ static_url("pagedown/Markdown.Converter.js") }}" charset="utf-8"></script>
198
199
199 <script src="{{ static_url("prettify/prettify.js") }}" charset="utf-8"></script>
200 <script src="{{ static_url("prettify/prettify.js") }}" charset="utf-8"></script>
200 <script src="{{ static_url("dateformat/date.format.js") }}" charset="utf-8"></script>
201 <script src="{{ static_url("dateformat/date.format.js") }}" charset="utf-8"></script>
201
202
202 <script src="{{ static_url("js/events.js") }}" type="text/javascript" charset="utf-8"></script>
203 <script src="{{ static_url("js/events.js") }}" type="text/javascript" charset="utf-8"></script>
203 <script src="{{ static_url("js/utils.js") }}" type="text/javascript" charset="utf-8"></script>
204 <script src="{{ static_url("js/utils.js") }}" type="text/javascript" charset="utf-8"></script>
204 <script src="{{ static_url("js/layoutmanager.js") }}" type="text/javascript" charset="utf-8"></script>
205 <script src="{{ static_url("js/layoutmanager.js") }}" type="text/javascript" charset="utf-8"></script>
205 <script src="{{ static_url("js/mathjaxutils.js") }}" type="text/javascript" charset="utf-8"></script>
206 <script src="{{ static_url("js/mathjaxutils.js") }}" type="text/javascript" charset="utf-8"></script>
206 <script src="{{ static_url("js/outputarea.js") }}" type="text/javascript" charset="utf-8"></script>
207 <script src="{{ static_url("js/outputarea.js") }}" type="text/javascript" charset="utf-8"></script>
207 <script src="{{ static_url("js/cell.js") }}" type="text/javascript" charset="utf-8"></script>
208 <script src="{{ static_url("js/cell.js") }}" type="text/javascript" charset="utf-8"></script>
208 <script src="{{ static_url("js/celltoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
209 <script src="{{ static_url("js/celltoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
209 <script src="{{ static_url("js/codecell.js") }}" type="text/javascript" charset="utf-8"></script>
210 <script src="{{ static_url("js/codecell.js") }}" type="text/javascript" charset="utf-8"></script>
210 <script src="{{ static_url("js/completer.js") }}" type="text/javascript" charset="utf-8"></script>
211 <script src="{{ static_url("js/completer.js") }}" type="text/javascript" charset="utf-8"></script>
211 <script src="{{ static_url("js/textcell.js") }}" type="text/javascript" charset="utf-8"></script>
212 <script src="{{ static_url("js/textcell.js") }}" type="text/javascript" charset="utf-8"></script>
212 <script src="{{ static_url("js/kernel.js") }}" type="text/javascript" charset="utf-8"></script>
213 <script src="{{ static_url("js/kernel.js") }}" type="text/javascript" charset="utf-8"></script>
213 <script src="{{ static_url("js/savewidget.js") }}" type="text/javascript" charset="utf-8"></script>
214 <script src="{{ static_url("js/savewidget.js") }}" type="text/javascript" charset="utf-8"></script>
214 <script src="{{ static_url("js/quickhelp.js") }}" type="text/javascript" charset="utf-8"></script>
215 <script src="{{ static_url("js/quickhelp.js") }}" type="text/javascript" charset="utf-8"></script>
215 <script src="{{ static_url("js/pager.js") }}" type="text/javascript" charset="utf-8"></script>
216 <script src="{{ static_url("js/pager.js") }}" type="text/javascript" charset="utf-8"></script>
216 <script src="{{ static_url("js/menubar.js") }}" type="text/javascript" charset="utf-8"></script>
217 <script src="{{ static_url("js/menubar.js") }}" type="text/javascript" charset="utf-8"></script>
217 <script src="{{ static_url("js/toolbar.js") }}" type="text/javascript" charset="utf-8"></script>
218 <script src="{{ static_url("js/toolbar.js") }}" type="text/javascript" charset="utf-8"></script>
218 <script src="{{ static_url("js/maintoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
219 <script src="{{ static_url("js/maintoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
219 <script src="{{ static_url("js/notebook.js") }}" type="text/javascript" charset="utf-8"></script>
220 <script src="{{ static_url("js/notebook.js") }}" type="text/javascript" charset="utf-8"></script>
220 <script src="{{ static_url("js/notificationwidget.js") }}" type="text/javascript" charset="utf-8"></script>
221 <script src="{{ static_url("js/notificationwidget.js") }}" type="text/javascript" charset="utf-8"></script>
221 <script src="{{ static_url("js/notificationarea.js") }}" type="text/javascript" charset="utf-8"></script>
222 <script src="{{ static_url("js/notificationarea.js") }}" type="text/javascript" charset="utf-8"></script>
222 <script src="{{ static_url("js/tooltip.js") }}" type="text/javascript" charset="utf-8"></script>
223 <script src="{{ static_url("js/tooltip.js") }}" type="text/javascript" charset="utf-8"></script>
223 <script src="{{ static_url("js/config.js") }}" type="text/javascript" charset="utf-8"></script>
224 <script src="{{ static_url("js/config.js") }}" type="text/javascript" charset="utf-8"></script>
224 <script src="{{ static_url("js/notebookmain.js") }}" type="text/javascript" charset="utf-8"></script>
225 <script src="{{ static_url("js/notebookmain.js") }}" type="text/javascript" charset="utf-8"></script>
225
226
226 <script src="{{ static_url("js/contexthint.js") }}" charset="utf-8"></script>
227 <script src="{{ static_url("js/contexthint.js") }}" charset="utf-8"></script>
227
228
228 <script src="{{ static_url("js/celltoolbarpresets/default.js") }}" type="text/javascript" charset="utf-8"></script>
229 <script src="{{ static_url("js/celltoolbarpresets/default.js") }}" type="text/javascript" charset="utf-8"></script>
229 <script src="{{ static_url("js/celltoolbarpresets/slideshow.js") }}" type="text/javascript" charset="utf-8"></script>
230 <script src="{{ static_url("js/celltoolbarpresets/slideshow.js") }}" type="text/javascript" charset="utf-8"></script>
230
231
231 {% endblock %}
232 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now