Show More
@@ -1,332 +1,333 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 |
|
6 | <script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full%26delayStartupUntil=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("components/bootstrap-tour/build/css/bootstrap-tour.min.css") }}" type="text/css" /> |
|
14 | <link rel="stylesheet" href="{{ static_url("components/bootstrap-tour/build/css/bootstrap-tour.min.css") }}" type="text/css" /> | |
15 | <link rel="stylesheet" href="{{ static_url("components/codemirror/lib/codemirror.css") }}"> |
|
15 | <link rel="stylesheet" href="{{ static_url("components/codemirror/lib/codemirror.css") }}"> | |
16 |
|
16 | |||
17 | {{super()}} |
|
17 | {{super()}} | |
18 |
|
18 | |||
19 | <link rel="stylesheet" href="{{ static_url("notebook/css/override.css") }}" type="text/css" /> |
|
19 | <link rel="stylesheet" href="{{ static_url("notebook/css/override.css") }}" type="text/css" /> | |
20 |
|
20 | |||
21 | {% endblock %} |
|
21 | {% endblock %} | |
22 |
|
22 | |||
23 | {% block params %} |
|
23 | {% block params %} | |
24 |
|
24 | |||
25 | data-project="{{project}}" |
|
25 | data-project="{{project}}" | |
26 | data-base-url="{{base_url}}" |
|
26 | data-base-url="{{base_url}}" | |
27 | data-ws-url="{{ws_url}}" |
|
27 | data-ws-url="{{ws_url}}" | |
28 | data-notebook-name="{{notebook_name}}" |
|
28 | data-notebook-name="{{notebook_name}}" | |
29 | data-notebook-path="{{notebook_path}}" |
|
29 | data-notebook-path="{{notebook_path}}" | |
30 | class="notebook_app" |
|
30 | class="notebook_app" | |
31 |
|
31 | |||
32 | {% endblock %} |
|
32 | {% endblock %} | |
33 |
|
33 | |||
34 |
|
34 | |||
35 | {% block headercontainer %} |
|
35 | {% block headercontainer %} | |
36 |
|
36 | |||
37 |
|
37 | |||
38 | <span id="save_widget" class="pull-left save_widget"> |
|
38 | <span id="save_widget" class="pull-left save_widget"> | |
39 | <span class="filename"></span> |
|
39 | <span class="filename"></span> | |
40 | <span class="checkpoint_status"></span> |
|
40 | <span class="checkpoint_status"></span> | |
41 | <span class="autosave_status"></span> |
|
41 | <span class="autosave_status"></span> | |
42 | </span> |
|
42 | </span> | |
43 |
|
43 | |||
44 |
< |
|
44 | <div id="kernel_selector_widget" class="pull-right dropdown"> | |
45 | <img id="current_kernel_logo"/> |
|
45 | <!-- empty png in 26 bytes below--> | |
|
46 | <img id="current_kernel_logo" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt='current kernel logo'> | |||
46 | <button class="dropdown-toggle btn btn-sm navbar-btn" data-toggle="dropdown" type='button' id="current_kernel_spec"> |
|
47 | <button class="dropdown-toggle btn btn-sm navbar-btn" data-toggle="dropdown" type='button' id="current_kernel_spec"> | |
47 | <span class='kernel_name'>Kernel</span> |
|
48 | <span class='kernel_name'>Kernel</span> | |
48 | <span class="caret"></span> |
|
49 | <span class="caret"></span> | |
49 | </button> |
|
50 | </button> | |
50 | <ul id="kernel_selector" class="dropdown-menu"> |
|
51 | <ul id="kernel_selector" class="dropdown-menu"> | |
51 | </ul> |
|
52 | </ul> | |
52 | </span> |
|
53 | </div> | |
53 |
|
54 | |||
54 | {% endblock headercontainer %} |
|
55 | {% endblock headercontainer %} | |
55 |
|
56 | |||
56 | {% block header %} |
|
57 | {% block header %} | |
57 | <div id="menubar-container" class="container"> |
|
58 | <div id="menubar-container" class="container"> | |
58 | <div id="menubar"> |
|
59 | <div id="menubar"> | |
59 | <div id="menus" class="navbar navbar-default" role="navigation"> |
|
60 | <div id="menus" class="navbar navbar-default" role="navigation"> | |
60 | <div class="container-fluid"> |
|
61 | <div class="container-fluid"> | |
61 | <button type="button" class="btn btn-default navbar-btn navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
|
62 | <button type="button" class="btn btn-default navbar-btn navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
62 | <i class="fa fa-bars"></i> |
|
63 | <i class="fa fa-bars"></i> | |
63 | <span class="navbar-text">Menu</span> |
|
64 | <span class="navbar-text">Menu</span> | |
64 | </button> |
|
65 | </button> | |
65 | <p id="kernel_indicator" class="navbar-text"> |
|
66 | <p id="kernel_indicator" class="navbar-text"> | |
66 | <i id="kernel_indicator_icon"></i> |
|
67 | <i id="kernel_indicator_icon"></i> | |
67 | </p> |
|
68 | </p> | |
68 | <p id="modal_indicator" class="navbar-text"> |
|
69 | <p id="modal_indicator" class="navbar-text"> | |
69 | <i id="modal_indicator_icon"></i> |
|
70 | <i id="modal_indicator_icon"></i> | |
70 | </p> |
|
71 | </p> | |
71 | <span id="notification_area"></span> |
|
72 | <span id="notification_area"></span> | |
72 | <div class="navbar-collapse collapse"> |
|
73 | <div class="navbar-collapse collapse"> | |
73 | <ul class="nav navbar-nav"> |
|
74 | <ul class="nav navbar-nav"> | |
74 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a> |
|
75 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a> | |
75 | <ul id="file_menu" class="dropdown-menu"> |
|
76 | <ul id="file_menu" class="dropdown-menu"> | |
76 | <li id="new_notebook" |
|
77 | <li id="new_notebook" | |
77 | title="Make a new notebook (Opens a new window)"> |
|
78 | title="Make a new notebook (Opens a new window)"> | |
78 | <a href="#">New</a></li> |
|
79 | <a href="#">New</a></li> | |
79 | <li id="open_notebook" |
|
80 | <li id="open_notebook" | |
80 | title="Opens a new window with the Dashboard view"> |
|
81 | title="Opens a new window with the Dashboard view"> | |
81 | <a href="#">Open...</a></li> |
|
82 | <a href="#">Open...</a></li> | |
82 | <!-- <hr/> --> |
|
83 | <!-- <hr/> --> | |
83 | <li class="divider"></li> |
|
84 | <li class="divider"></li> | |
84 | <li id="copy_notebook" |
|
85 | <li id="copy_notebook" | |
85 | title="Open a copy of this notebook's contents and start a new kernel"> |
|
86 | title="Open a copy of this notebook's contents and start a new kernel"> | |
86 | <a href="#">Make a Copy...</a></li> |
|
87 | <a href="#">Make a Copy...</a></li> | |
87 | <li id="rename_notebook"><a href="#">Rename...</a></li> |
|
88 | <li id="rename_notebook"><a href="#">Rename...</a></li> | |
88 | <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li> |
|
89 | <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li> | |
89 | <!-- <hr/> --> |
|
90 | <!-- <hr/> --> | |
90 | <li class="divider"></li> |
|
91 | <li class="divider"></li> | |
91 | <li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a> |
|
92 | <li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a> | |
92 | <ul class="dropdown-menu"> |
|
93 | <ul class="dropdown-menu"> | |
93 | <li><a href="#"></a></li> |
|
94 | <li><a href="#"></a></li> | |
94 | <li><a href="#"></a></li> |
|
95 | <li><a href="#"></a></li> | |
95 | <li><a href="#"></a></li> |
|
96 | <li><a href="#"></a></li> | |
96 | <li><a href="#"></a></li> |
|
97 | <li><a href="#"></a></li> | |
97 | <li><a href="#"></a></li> |
|
98 | <li><a href="#"></a></li> | |
98 | </ul> |
|
99 | </ul> | |
99 | </li> |
|
100 | </li> | |
100 | <li class="divider"></li> |
|
101 | <li class="divider"></li> | |
101 | <li id="print_preview"><a href="#">Print Preview</a></li> |
|
102 | <li id="print_preview"><a href="#">Print Preview</a></li> | |
102 | <li class="dropdown-submenu"><a href="#">Download as</a> |
|
103 | <li class="dropdown-submenu"><a href="#">Download as</a> | |
103 | <ul class="dropdown-menu"> |
|
104 | <ul class="dropdown-menu"> | |
104 | <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li> |
|
105 | <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li> | |
105 | <li id="download_script"><a href="#">Script</a></li> |
|
106 | <li id="download_script"><a href="#">Script</a></li> | |
106 | <li id="download_html"><a href="#">HTML (.html)</a></li> |
|
107 | <li id="download_html"><a href="#">HTML (.html)</a></li> | |
107 | <li id="download_rst"><a href="#">reST (.rst)</a></li> |
|
108 | <li id="download_rst"><a href="#">reST (.rst)</a></li> | |
108 | <li id="download_pdf"><a href="#">PDF (.pdf)</a></li> |
|
109 | <li id="download_pdf"><a href="#">PDF (.pdf)</a></li> | |
109 | </ul> |
|
110 | </ul> | |
110 | </li> |
|
111 | </li> | |
111 | <li class="divider"></li> |
|
112 | <li class="divider"></li> | |
112 | <li id="trust_notebook" |
|
113 | <li id="trust_notebook" | |
113 | title="Trust the output of this notebook"> |
|
114 | title="Trust the output of this notebook"> | |
114 | <a href="#" >Trust Notebook</a></li> |
|
115 | <a href="#" >Trust Notebook</a></li> | |
115 | <li class="divider"></li> |
|
116 | <li class="divider"></li> | |
116 | <li id="kill_and_exit" |
|
117 | <li id="kill_and_exit" | |
117 | title="Shutdown this notebook's kernel, and close this window"> |
|
118 | title="Shutdown this notebook's kernel, and close this window"> | |
118 | <a href="#" >Close and halt</a></li> |
|
119 | <a href="#" >Close and halt</a></li> | |
119 | </ul> |
|
120 | </ul> | |
120 | </li> |
|
121 | </li> | |
121 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a> |
|
122 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a> | |
122 | <ul id="edit_menu" class="dropdown-menu"> |
|
123 | <ul id="edit_menu" class="dropdown-menu"> | |
123 | <li id="cut_cell"><a href="#">Cut Cell</a></li> |
|
124 | <li id="cut_cell"><a href="#">Cut Cell</a></li> | |
124 | <li id="copy_cell"><a href="#">Copy Cell</a></li> |
|
125 | <li id="copy_cell"><a href="#">Copy Cell</a></li> | |
125 | <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li> |
|
126 | <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li> | |
126 | <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li> |
|
127 | <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li> | |
127 | <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell & Replace</a></li> |
|
128 | <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell & Replace</a></li> | |
128 | <li id="delete_cell"><a href="#">Delete Cell</a></li> |
|
129 | <li id="delete_cell"><a href="#">Delete Cell</a></li> | |
129 | <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li> |
|
130 | <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li> | |
130 | <li class="divider"></li> |
|
131 | <li class="divider"></li> | |
131 | <li id="split_cell"><a href="#">Split Cell</a></li> |
|
132 | <li id="split_cell"><a href="#">Split Cell</a></li> | |
132 | <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li> |
|
133 | <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li> | |
133 | <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li> |
|
134 | <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li> | |
134 | <li class="divider"></li> |
|
135 | <li class="divider"></li> | |
135 | <li id="move_cell_up"><a href="#">Move Cell Up</a></li> |
|
136 | <li id="move_cell_up"><a href="#">Move Cell Up</a></li> | |
136 | <li id="move_cell_down"><a href="#">Move Cell Down</a></li> |
|
137 | <li id="move_cell_down"><a href="#">Move Cell Down</a></li> | |
137 | <li class="divider"></li> |
|
138 | <li class="divider"></li> | |
138 | <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li> |
|
139 | <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li> | |
139 | </ul> |
|
140 | </ul> | |
140 | </li> |
|
141 | </li> | |
141 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a> |
|
142 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a> | |
142 | <ul id="view_menu" class="dropdown-menu"> |
|
143 | <ul id="view_menu" class="dropdown-menu"> | |
143 | <li id="toggle_header" |
|
144 | <li id="toggle_header" | |
144 | title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)"> |
|
145 | title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)"> | |
145 | <a href="#">Toggle Header</a></li> |
|
146 | <a href="#">Toggle Header</a></li> | |
146 | <li id="toggle_toolbar" |
|
147 | <li id="toggle_toolbar" | |
147 | title="Show/Hide the action icons (below menu bar)"> |
|
148 | title="Show/Hide the action icons (below menu bar)"> | |
148 | <a href="#">Toggle Toolbar</a></li> |
|
149 | <a href="#">Toggle Toolbar</a></li> | |
149 | </ul> |
|
150 | </ul> | |
150 | </li> |
|
151 | </li> | |
151 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a> |
|
152 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a> | |
152 | <ul id="insert_menu" class="dropdown-menu"> |
|
153 | <ul id="insert_menu" class="dropdown-menu"> | |
153 | <li id="insert_cell_above" |
|
154 | <li id="insert_cell_above" | |
154 | title="Insert an empty Code cell above the currently active cell"> |
|
155 | title="Insert an empty Code cell above the currently active cell"> | |
155 | <a href="#">Insert Cell Above</a></li> |
|
156 | <a href="#">Insert Cell Above</a></li> | |
156 | <li id="insert_cell_below" |
|
157 | <li id="insert_cell_below" | |
157 | title="Insert an empty Code cell below the currently active cell"> |
|
158 | title="Insert an empty Code cell below the currently active cell"> | |
158 | <a href="#">Insert Cell Below</a></li> |
|
159 | <a href="#">Insert Cell Below</a></li> | |
159 | </ul> |
|
160 | </ul> | |
160 | </li> |
|
161 | </li> | |
161 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a> |
|
162 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a> | |
162 | <ul id="cell_menu" class="dropdown-menu"> |
|
163 | <ul id="cell_menu" class="dropdown-menu"> | |
163 | <li id="run_cell" title="Run this cell, and move cursor to the next one"> |
|
164 | <li id="run_cell" title="Run this cell, and move cursor to the next one"> | |
164 | <a href="#">Run</a></li> |
|
165 | <a href="#">Run</a></li> | |
165 | <li id="run_cell_select_below" title="Run this cell, select below"> |
|
166 | <li id="run_cell_select_below" title="Run this cell, select below"> | |
166 | <a href="#">Run and Select Below</a></li> |
|
167 | <a href="#">Run and Select Below</a></li> | |
167 | <li id="run_cell_insert_below" title="Run this cell, insert below"> |
|
168 | <li id="run_cell_insert_below" title="Run this cell, insert below"> | |
168 | <a href="#">Run and Insert Below</a></li> |
|
169 | <a href="#">Run and Insert Below</a></li> | |
169 | <li id="run_all_cells" title="Run all cells in the notebook"> |
|
170 | <li id="run_all_cells" title="Run all cells in the notebook"> | |
170 | <a href="#">Run All</a></li> |
|
171 | <a href="#">Run All</a></li> | |
171 | <li id="run_all_cells_above" title="Run all cells above (but not including) this cell"> |
|
172 | <li id="run_all_cells_above" title="Run all cells above (but not including) this cell"> | |
172 | <a href="#">Run All Above</a></li> |
|
173 | <a href="#">Run All Above</a></li> | |
173 | <li id="run_all_cells_below" title="Run this cell and all cells below it"> |
|
174 | <li id="run_all_cells_below" title="Run this cell and all cells below it"> | |
174 | <a href="#">Run All Below</a></li> |
|
175 | <a href="#">Run All Below</a></li> | |
175 | <li class="divider"></li> |
|
176 | <li class="divider"></li> | |
176 | <li id="change_cell_type" class="dropdown-submenu" |
|
177 | <li id="change_cell_type" class="dropdown-submenu" | |
177 | title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells"> |
|
178 | title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells"> | |
178 | <a href="#">Cell Type</a> |
|
179 | <a href="#">Cell Type</a> | |
179 | <ul class="dropdown-menu"> |
|
180 | <ul class="dropdown-menu"> | |
180 | <li id="to_code" |
|
181 | <li id="to_code" | |
181 | title="Contents will be sent to the kernel for execution, and output will display in the footer of cell"> |
|
182 | title="Contents will be sent to the kernel for execution, and output will display in the footer of cell"> | |
182 | <a href="#">Code</a></li> |
|
183 | <a href="#">Code</a></li> | |
183 | <li id="to_markdown" |
|
184 | <li id="to_markdown" | |
184 | title="Contents will be rendered as HTML and serve as explanatory text"> |
|
185 | title="Contents will be rendered as HTML and serve as explanatory text"> | |
185 | <a href="#">Markdown</a></li> |
|
186 | <a href="#">Markdown</a></li> | |
186 | <li id="to_raw" |
|
187 | <li id="to_raw" | |
187 | title="Contents will pass through nbconvert unmodified"> |
|
188 | title="Contents will pass through nbconvert unmodified"> | |
188 | <a href="#">Raw NBConvert</a></li> |
|
189 | <a href="#">Raw NBConvert</a></li> | |
189 | </ul> |
|
190 | </ul> | |
190 | </li> |
|
191 | </li> | |
191 | <li class="divider"></li> |
|
192 | <li class="divider"></li> | |
192 | <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a> |
|
193 | <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a> | |
193 | <ul class="dropdown-menu"> |
|
194 | <ul class="dropdown-menu"> | |
194 | <li id="toggle_current_output" |
|
195 | <li id="toggle_current_output" | |
195 | title="Hide/Show the output of the current cell"> |
|
196 | title="Hide/Show the output of the current cell"> | |
196 | <a href="#">Toggle</a> |
|
197 | <a href="#">Toggle</a> | |
197 | </li> |
|
198 | </li> | |
198 | <li id="toggle_current_output_scroll" |
|
199 | <li id="toggle_current_output_scroll" | |
199 | title="Scroll the output of the current cell"> |
|
200 | title="Scroll the output of the current cell"> | |
200 | <a href="#">Toggle Scrolling</a> |
|
201 | <a href="#">Toggle Scrolling</a> | |
201 | </li> |
|
202 | </li> | |
202 | <li id="clear_current_output" |
|
203 | <li id="clear_current_output" | |
203 | title="Clear the output of the current cell"> |
|
204 | title="Clear the output of the current cell"> | |
204 | <a href="#">Clear</a> |
|
205 | <a href="#">Clear</a> | |
205 | </li> |
|
206 | </li> | |
206 | </ul> |
|
207 | </ul> | |
207 | </li> |
|
208 | </li> | |
208 | <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a> |
|
209 | <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a> | |
209 | <ul class="dropdown-menu"> |
|
210 | <ul class="dropdown-menu"> | |
210 | <li id="toggle_all_output" |
|
211 | <li id="toggle_all_output" | |
211 | title="Hide/Show the output of all cells"> |
|
212 | title="Hide/Show the output of all cells"> | |
212 | <a href="#">Toggle</a> |
|
213 | <a href="#">Toggle</a> | |
213 | </li> |
|
214 | </li> | |
214 | <li id="toggle_all_output_scroll" |
|
215 | <li id="toggle_all_output_scroll" | |
215 | title="Scroll the output of all cells"> |
|
216 | title="Scroll the output of all cells"> | |
216 | <a href="#">Toggle Scrolling</a> |
|
217 | <a href="#">Toggle Scrolling</a> | |
217 | </li> |
|
218 | </li> | |
218 | <li id="clear_all_output" |
|
219 | <li id="clear_all_output" | |
219 | title="Clear the output of all cells"> |
|
220 | title="Clear the output of all cells"> | |
220 | <a href="#">Clear</a> |
|
221 | <a href="#">Clear</a> | |
221 | </li> |
|
222 | </li> | |
222 | </ul> |
|
223 | </ul> | |
223 | </li> |
|
224 | </li> | |
224 | </ul> |
|
225 | </ul> | |
225 | </li> |
|
226 | </li> | |
226 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a> |
|
227 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a> | |
227 | <ul id="kernel_menu" class="dropdown-menu"> |
|
228 | <ul id="kernel_menu" class="dropdown-menu"> | |
228 | <li id="int_kernel" |
|
229 | <li id="int_kernel" | |
229 | title="Send KeyboardInterrupt (CTRL-C) to the Kernel"> |
|
230 | title="Send KeyboardInterrupt (CTRL-C) to the Kernel"> | |
230 | <a href="#">Interrupt</a> |
|
231 | <a href="#">Interrupt</a> | |
231 | </li> |
|
232 | </li> | |
232 | <li id="restart_kernel" |
|
233 | <li id="restart_kernel" | |
233 | title="Restart the Kernel"> |
|
234 | title="Restart the Kernel"> | |
234 | <a href="#">Restart</a> |
|
235 | <a href="#">Restart</a> | |
235 | </li> |
|
236 | </li> | |
236 | <li id="reconnect_kernel" |
|
237 | <li id="reconnect_kernel" | |
237 | title="Reconnect to the Kernel"> |
|
238 | title="Reconnect to the Kernel"> | |
238 | <a href="#">Reconnect</a> |
|
239 | <a href="#">Reconnect</a> | |
239 | </li> |
|
240 | </li> | |
240 | <li class="divider"></li> |
|
241 | <li class="divider"></li> | |
241 | <li id="menu-change-kernel" class="dropdown-submenu"> |
|
242 | <li id="menu-change-kernel" class="dropdown-submenu"> | |
242 | <a href="#">Change kernel</a> |
|
243 | <a href="#">Change kernel</a> | |
243 | <ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul> |
|
244 | <ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul> | |
244 | </li> |
|
245 | </li> | |
245 | </ul> |
|
246 | </ul> | |
246 | </li> |
|
247 | </li> | |
247 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a> |
|
248 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a> | |
248 | <ul id="help_menu" class="dropdown-menu"> |
|
249 | <ul id="help_menu" class="dropdown-menu"> | |
249 | <li id="notebook_tour" title="A quick tour of the notebook user interface"><a href="#">User Interface Tour</a></li> |
|
250 | <li id="notebook_tour" title="A quick tour of the notebook user interface"><a href="#">User Interface Tour</a></li> | |
250 | <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li> |
|
251 | <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li> | |
251 | <li class="divider"></li> |
|
252 | <li class="divider"></li> | |
252 | {% set |
|
253 | {% set | |
253 | sections = ( |
|
254 | sections = ( | |
254 | ( |
|
255 | ( | |
255 | ("http://ipython.org/documentation.html","IPython Help",True), |
|
256 | ("http://ipython.org/documentation.html","IPython Help",True), | |
256 | ("http://nbviewer.ipython.org/github/ipython/ipython/tree/2.x/examples/Index.ipynb", "Notebook Help", True), |
|
257 | ("http://nbviewer.ipython.org/github/ipython/ipython/tree/2.x/examples/Index.ipynb", "Notebook Help", True), | |
257 | ),( |
|
258 | ),( | |
258 | ("http://docs.python.org","Python",True), |
|
259 | ("http://docs.python.org","Python",True), | |
259 | ("http://help.github.com/articles/github-flavored-markdown","Markdown",True), |
|
260 | ("http://help.github.com/articles/github-flavored-markdown","Markdown",True), | |
260 | ("http://docs.scipy.org/doc/numpy/reference/","NumPy",True), |
|
261 | ("http://docs.scipy.org/doc/numpy/reference/","NumPy",True), | |
261 | ("http://docs.scipy.org/doc/scipy/reference/","SciPy",True), |
|
262 | ("http://docs.scipy.org/doc/scipy/reference/","SciPy",True), | |
262 | ("http://matplotlib.org/contents.html","Matplotlib",True), |
|
263 | ("http://matplotlib.org/contents.html","Matplotlib",True), | |
263 | ("http://docs.sympy.org/latest/index.html","SymPy",True), |
|
264 | ("http://docs.sympy.org/latest/index.html","SymPy",True), | |
264 | ("http://pandas.pydata.org/pandas-docs/stable/","pandas", True) |
|
265 | ("http://pandas.pydata.org/pandas-docs/stable/","pandas", True) | |
265 | ) |
|
266 | ) | |
266 | ) |
|
267 | ) | |
267 | %} |
|
268 | %} | |
268 |
|
269 | |||
269 | {% for helplinks in sections %} |
|
270 | {% for helplinks in sections %} | |
270 | {% for link in helplinks %} |
|
271 | {% for link in helplinks %} | |
271 | <li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}> |
|
272 | <li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}> | |
272 | {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}} |
|
273 | {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}} | |
273 | {{link[1]}} |
|
274 | {{link[1]}} | |
274 | </a></li> |
|
275 | </a></li> | |
275 | {% endfor %} |
|
276 | {% endfor %} | |
276 | {% if not loop.last %} |
|
277 | {% if not loop.last %} | |
277 | <li class="divider"></li> |
|
278 | <li class="divider"></li> | |
278 | {% endif %} |
|
279 | {% endif %} | |
279 | {% endfor %} |
|
280 | {% endfor %} | |
280 | <li class="divider"></li> |
|
281 | <li class="divider"></li> | |
281 | <li title="About IPython Notebook"><a id="notebook_about" href="#">About</a></li> |
|
282 | <li title="About IPython Notebook"><a id="notebook_about" href="#">About</a></li> | |
282 | </ul> |
|
283 | </ul> | |
283 | </li> |
|
284 | </li> | |
284 | </ul> |
|
285 | </ul> | |
285 | </div> |
|
286 | </div> | |
286 | </div> |
|
287 | </div> | |
287 | </div> |
|
288 | </div> | |
288 | </div> |
|
289 | </div> | |
289 |
|
290 | |||
290 | <div id="maintoolbar" class="navbar"> |
|
291 | <div id="maintoolbar" class="navbar"> | |
291 | <div class="toolbar-inner navbar-inner navbar-nobg"> |
|
292 | <div class="toolbar-inner navbar-inner navbar-nobg"> | |
292 | <div id="maintoolbar-container" class="container"></div> |
|
293 | <div id="maintoolbar-container" class="container"></div> | |
293 | </div> |
|
294 | </div> | |
294 | </div> |
|
295 | </div> | |
295 | </div> |
|
296 | </div> | |
296 |
|
297 | |||
297 | <div class="lower-header-bar"></div> |
|
298 | <div class="lower-header-bar"></div> | |
298 | {% endblock header %} |
|
299 | {% endblock header %} | |
299 |
|
300 | |||
300 | {% block site %} |
|
301 | {% block site %} | |
301 |
|
302 | |||
302 |
|
303 | |||
303 | <div id="ipython-main-app"> |
|
304 | <div id="ipython-main-app"> | |
304 | <div id="notebook_panel"> |
|
305 | <div id="notebook_panel"> | |
305 | <div id="notebook"></div> |
|
306 | <div id="notebook"></div> | |
306 | </div> |
|
307 | </div> | |
307 | </div> |
|
308 | </div> | |
308 |
|
309 | |||
309 | <div id="pager"> |
|
310 | <div id="pager"> | |
310 | <div id="pager-contents"> |
|
311 | <div id="pager-contents"> | |
311 | <div id="pager-container" class="container"></div> |
|
312 | <div id="pager-container" class="container"></div> | |
312 | </div> |
|
313 | </div> | |
313 | <div id='pager-button-area'></div> |
|
314 | <div id='pager-button-area'></div> | |
314 | </div> |
|
315 | </div> | |
315 |
|
316 | |||
316 | <div id='tooltip' class='ipython_tooltip' style='display:none'></div> |
|
317 | <div id='tooltip' class='ipython_tooltip' style='display:none'></div> | |
317 |
|
318 | |||
318 |
|
319 | |||
319 | {% endblock %} |
|
320 | {% endblock %} | |
320 |
|
321 | |||
321 |
|
322 | |||
322 | {% block script %} |
|
323 | {% block script %} | |
323 | {{super()}} |
|
324 | {{super()}} | |
324 | <script type="text/javascript"> |
|
325 | <script type="text/javascript"> | |
325 | sys_info = {{sys_info}}; |
|
326 | sys_info = {{sys_info}}; | |
326 | </script> |
|
327 | </script> | |
327 |
|
328 | |||
328 | <script src="{{ static_url("components/text-encoding/lib/encoding.js") }}" charset="utf-8"></script> |
|
329 | <script src="{{ static_url("components/text-encoding/lib/encoding.js") }}" charset="utf-8"></script> | |
329 |
|
330 | |||
330 | <script src="{{ static_url("notebook/js/main.js") }}" charset="utf-8"></script> |
|
331 | <script src="{{ static_url("notebook/js/main.js") }}" charset="utf-8"></script> | |
331 |
|
332 | |||
332 | {% endblock %} |
|
333 | {% endblock %} |
@@ -1,155 +1,140 b'' | |||||
1 | {% extends "page.html" %} |
|
1 | {% extends "page.html" %} | |
2 |
|
2 | |||
3 | {% block title %}{{page_title}}{% endblock %} |
|
3 | {% block title %}{{page_title}}{% endblock %} | |
4 |
|
4 | |||
5 |
|
5 | |||
6 | {% block stylesheet %} |
|
6 | {% block stylesheet %} | |
7 | {{super()}} |
|
7 | {{super()}} | |
8 | <link rel="stylesheet" href="{{ static_url("tree/css/override.css") }}" type="text/css" /> |
|
8 | <link rel="stylesheet" href="{{ static_url("tree/css/override.css") }}" type="text/css" /> | |
9 | {% endblock %} |
|
9 | {% endblock %} | |
10 |
|
10 | |||
11 | {% block params %} |
|
11 | {% block params %} | |
12 |
|
12 | |||
13 | data-base-url="{{base_url}}" |
|
13 | data-base-url="{{base_url}}" | |
14 | data-notebook-path="{{notebook_path}}" |
|
14 | data-notebook-path="{{notebook_path}}" | |
15 | data-terminals-available="{{terminals_available}}" |
|
15 | data-terminals-available="{{terminals_available}}" | |
16 |
|
16 | |||
17 | {% endblock %} |
|
17 | {% endblock %} | |
18 |
|
18 | |||
19 |
|
19 | |||
20 | {% block site %} |
|
20 | {% block site %} | |
21 |
|
21 | |||
22 | <div id="ipython-main-app" class="container"> |
|
22 | <div id="ipython-main-app" class="container"> | |
23 |
|
||||
24 | <div id="tab_content" class="tabbable"> |
|
23 | <div id="tab_content" class="tabbable"> | |
25 | <ul id="tabs" class="nav nav-tabs"> |
|
24 | <ul id="tabs" class="nav nav-tabs"> | |
26 | <li class="active"><a href="#notebooks" data-toggle="tab">Notebooks</a></li> |
|
25 | <li class="active"><a href="#notebooks" data-toggle="tab">Notebooks</a></li> | |
27 | <li><a href="#running" data-toggle="tab">Running</a></li> |
|
26 | <li><a href="#running" data-toggle="tab">Running</a></li> | |
28 | {% if terminals_available %} |
|
27 | {% if terminals_available %} | |
29 | <li><a href="#terminals" data-toggle="tab">Terminals</a></li> |
|
28 | <li><a href="#terminals" data-toggle="tab">Terminals</a></li> | |
30 | {% endif %} |
|
29 | {% endif %} | |
31 | <li><a href="#clusters" data-toggle="tab">Clusters</a></li> |
|
30 | <li><a href="#clusters" data-toggle="tab">Clusters</a></li> | |
32 | </ul> |
|
31 | </ul> | |
33 |
|
||||
34 | <div class="tab-content"> |
|
32 | <div class="tab-content"> | |
35 | <div id="notebooks" class="tab-pane active"> |
|
33 | <div id="notebooks" class="tab-pane active"> | |
36 | <div id="notebook_toolbar" class="row"> |
|
34 | <div id="notebook_toolbar" class="row"> | |
37 | <div class="col-sm-12 no-padding"> |
|
35 | <div class="col-sm-12 no-padding"> | |
38 |
|
|
36 | <form id='alternate_upload' class='alternate_upload'> | |
39 |
|
|
37 | <span id="notebook_list_info"> | |
40 |
|
|
38 | To import a notebook, drag the file onto the listing below or | |
41 |
|
|
39 | <span class="input-overlay"> | |
42 |
|
|
40 | <input type="file" name="datafile" class="fileinput" multiple='multiple'> | |
43 |
|
|
41 | click here. | |
44 |
|
|
42 | </span> | |
45 |
|
|
43 | </span> | |
46 |
|
|
44 | </form> | |
47 | <div id="notebook_buttons" class="pull-right"> |
|
45 | <div id="notebook_buttons" class="pull-right"> | |
48 | <div id="new-notebook-buttons" class="btn-group"> |
|
46 | <div id="new-notebook-buttons" class="btn-group"> | |
49 | <button id="new_notebook" class="btn btn-default btn-xs"> |
|
47 | <button id="new_notebook" class="btn btn-default btn-xs"> | |
50 |
|
|
48 | New Notebook | |
51 | </button> |
|
49 | </button> | |
52 | <button class="dropdown-toggle btn btn-default btn-xs" data-toggle="dropdown"> |
|
50 | <button class="dropdown-toggle btn btn-default btn-xs" data-toggle="dropdown"> | |
53 |
|
|
51 | <span id="current-kernel">Loading...</span> | |
54 |
|
|
52 | <span class="caret"></span> | |
55 | </button> |
|
53 | </button> | |
56 | <ul id="new-notebook-menu" class="dropdown-menu"></ul> |
|
54 | <ul id="new-notebook-menu" class="dropdown-menu"></ul> | |
57 | </div> |
|
55 | </div> | |
58 |
|
||||
59 |
|
||||
60 | <button id="refresh_notebook_list" title="Refresh notebook list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> |
|
56 | <button id="refresh_notebook_list" title="Refresh notebook list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> | |
61 | </div> |
|
57 | </div> | |
62 | </div> |
|
58 | </div> | |
63 | </div> |
|
59 | </div> | |
64 |
|
||||
65 | <div id="notebook_list"> |
|
60 | <div id="notebook_list"> | |
66 | <div id="notebook_list_header" class="row list_header"> |
|
61 | <div id="notebook_list_header" class="row list_header"> | |
67 | <div id="project_name"> |
|
62 | <div id="project_name"> | |
68 | <ul class="breadcrumb"> |
|
63 | <ul class="breadcrumb"> | |
69 |
|
|
64 | <li><a href="{{breadcrumbs[0][0]}}"><i class="fa fa-home"></i></a></li> | |
70 |
|
|
65 | {% for crumb in breadcrumbs[1:] %} | |
71 |
|
|
66 | <li><a href="{{crumb[0]}}">{{crumb[1]}}</a></li> | |
72 |
|
|
67 | {% endfor %} | |
73 | </ul> |
|
68 | </ul> | |
74 | </div> |
|
69 | </div> | |
75 | </div> |
|
70 | </div> | |
76 | </div> |
|
71 | </div> | |
77 | </div> |
|
72 | </div> | |
78 |
|
||||
79 | <div id="running" class="tab-pane"> |
|
73 | <div id="running" class="tab-pane"> | |
80 |
|
||||
81 | <div id="running_toolbar" class="row"> |
|
74 | <div id="running_toolbar" class="row"> | |
82 | <div class="col-sm-8 no-padding"> |
|
75 | <div class="col-sm-8 no-padding"> | |
83 |
|
|
76 | <span id="running_list_info">Currently running IPython notebooks</span> | |
84 | </div> |
|
77 | </div> | |
85 | <div class="col-sm-4 no-padding tree-buttons"> |
|
78 | <div class="col-sm-4 no-padding tree-buttons"> | |
86 |
|
|
79 | <span id="running_buttons" class="pull-right"> | |
87 |
|
|
80 | <button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> | |
88 |
|
|
81 | </span> | |
89 | </div> |
|
82 | </div> | |
90 | </div> |
|
83 | </div> | |
91 |
|
||||
92 | <div id="running_list"> |
|
84 | <div id="running_list"> | |
93 |
<div id="running_list_header" class="row list_header"> |
|
85 | <div id="running_list_header" class="row list_header"> | |
94 |
|
|
86 | <div> There are no notebooks running. </div> | |
95 |
</div> |
|
87 | </div> | |
96 | </div> |
|
88 | </div> | |
97 | </div> |
|
89 | </div> | |
98 |
|
||||
99 | {% if terminals_available %} |
|
90 | {% if terminals_available %} | |
100 | <div id="terminals" class="tab-pane"> |
|
91 | <div id="terminals" class="tab-pane"> | |
101 |
|
||||
102 | <div id="terminal_toolbar" class="row"> |
|
92 | <div id="terminal_toolbar" class="row"> | |
103 | <div class="col-xs-8 no-padding"> |
|
93 | <div class="col-xs-8 no-padding"> | |
104 |
|
|
94 | <span id="terminal_list_info">Currently running terminals</span> | |
105 | </div> |
|
95 | </div> | |
106 | <div class="col-xs-4 no-padding tree-buttons"> |
|
96 | <div class="col-xs-4 no-padding tree-buttons"> | |
107 |
|
|
97 | <span id="terminal_buttons" class="pull-right"> | |
108 |
|
|
98 | <button id="new_terminal" title="New terminal" class="btn btn-default btn-xs">New Terminal</button> | |
109 |
|
|
99 | <button id="refresh_terminal_list" title="Refresh terminal list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> | |
110 |
|
|
100 | </span> | |
111 | </div> |
|
101 | </div> | |
112 | </div> |
|
102 | </div> | |
113 |
|
||||
114 | <div id="terminal_list"> |
|
103 | <div id="terminal_list"> | |
115 | <div id="terminal_list_header" class="row list_header"> |
|
104 | <div id="terminal_list_header" class="row list_header"> | |
116 |
|
|
105 | <div> There are no terminals running. </div> | |
117 | </div> |
|
106 | </div> | |
118 | </div> |
|
107 | </div> | |
119 | </div> |
|
108 | </div> | |
120 | {% endif %} |
|
109 | {% endif %} | |
121 |
|
||||
122 | <div id="clusters" class="tab-pane"> |
|
110 | <div id="clusters" class="tab-pane"> | |
123 |
|
||||
124 | <div id="cluster_toolbar" class="row"> |
|
111 | <div id="cluster_toolbar" class="row"> | |
125 | <div class="col-xs-8 no-padding"> |
|
112 | <div class="col-xs-8 no-padding"> | |
126 |
|
|
113 | <span id="cluster_list_info">IPython parallel computing clusters</span> | |
127 | </div> |
|
114 | </div> | |
128 | <div class="col-xs-4 no-padding tree-buttons"> |
|
115 | <div class="col-xs-4 no-padding tree-buttons"> | |
129 |
|
|
116 | <span id="cluster_buttons" class="pull-right"> | |
130 |
|
|
117 | <button id="refresh_cluster_list" title="Refresh cluster list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> | |
131 |
|
|
118 | </span> | |
132 | </div> |
|
119 | </div> | |
133 | </div> |
|
120 | </div> | |
134 |
|
||||
135 | <div id="cluster_list"> |
|
121 | <div id="cluster_list"> | |
136 | <div id="cluster_list_header" class="row list_header"> |
|
122 | <div id="cluster_list_header" class="row list_header"> | |
137 |
|
|
123 | <div class="profile_col col-xs-4">profile</div> | |
138 |
|
|
124 | <div class="status_col col-xs-3">status</div> | |
139 |
|
|
125 | <div class="engines_col col-xs-3" title="Enter the number of engines to start or empty for default"># of engines</div> | |
140 |
|
|
126 | <div class="action_col col-xs-2">action</div> | |
141 | </div> |
|
127 | </div> | |
142 | </div> |
|
128 | </div> | |
143 | </div> |
|
129 | </div> | |
144 | </div> |
|
130 | </div><!-- class:tab-content --> | |
145 | </div><!-- tab_content --> |
|
131 | </div><!-- id:tab_content --> | |
146 |
|
||||
147 | </div><!-- ipython-main-app --> |
|
132 | </div><!-- ipython-main-app --> | |
148 |
|
133 | |||
149 | {% endblock %} |
|
134 | {% endblock %} | |
150 |
|
135 | |||
151 | {% block script %} |
|
136 | {% block script %} | |
152 | {{super()}} |
|
137 | {{super()}} | |
153 |
|
138 | |||
154 | <script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script> |
|
139 | <script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script> | |
155 | {% endblock %} |
|
140 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now