Show More
@@ -1,147 +1,147 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 | // SaveWidget |
|
9 | // SaveWidget | |
10 | //============================================================================ |
|
10 | //============================================================================ | |
11 |
|
11 | |||
12 | var IPython = (function (IPython) { |
|
12 | var IPython = (function (IPython) { | |
13 |
|
13 | |||
14 | var utils = IPython.utils; |
|
14 | var utils = IPython.utils; | |
15 |
|
15 | |||
16 | var SaveWidget = function (selector) { |
|
16 | var SaveWidget = function (selector) { | |
17 | this.selector = selector; |
|
17 | this.selector = selector; | |
18 | this.notebook_name_re = /[^/\\]+/ |
|
18 | this.notebook_name_re = /[^/\\]+/ | |
19 | this.last_saved_name = ''; |
|
19 | this.last_saved_name = ''; | |
20 | if (this.selector !== undefined) { |
|
20 | if (this.selector !== undefined) { | |
21 | this.element = $(selector); |
|
21 | this.element = $(selector); | |
22 | this.style(); |
|
22 | this.style(); | |
23 | this.bind_events(); |
|
23 | this.bind_events(); | |
24 | } |
|
24 | } | |
25 | }; |
|
25 | }; | |
26 |
|
26 | |||
27 |
|
27 | |||
28 | SaveWidget.prototype.style = function () { |
|
28 | SaveWidget.prototype.style = function () { | |
29 | this.element.find('input#notebook_name').addClass('ui-widget ui-widget-content'); |
|
29 | this.element.find('input#notebook_name').addClass('ui-widget ui-widget-content'); | |
30 | this.element.find('input#notebook_name').attr('tabindex','1'); |
|
30 | this.element.find('input#notebook_name').attr('tabindex','1'); | |
31 | this.element.find('button#save_notebook').button(); |
|
31 | this.element.find('button#save_notebook').button(); | |
32 | var left_panel_width = $('div#left_panel').outerWidth(); |
|
32 | var left_panel_width = $('div#left_panel').outerWidth(); | |
33 | var left_panel_splitter_width = $('div#left_panel_splitter').outerWidth(); |
|
33 | var left_panel_splitter_width = $('div#left_panel_splitter').outerWidth(); | |
34 | $('span#save_widget').css({marginLeft:left_panel_width+left_panel_splitter_width}); |
|
34 | $('span#save_widget').css({marginLeft:left_panel_width+left_panel_splitter_width}); | |
35 |
|
35 | |||
36 | }; |
|
36 | }; | |
37 |
|
37 | |||
38 |
|
38 | |||
39 | SaveWidget.prototype.bind_events = function () { |
|
39 | SaveWidget.prototype.bind_events = function () { | |
40 | var that = this; |
|
40 | var that = this; | |
41 | this.element.find('button#save_notebook').click(function () { |
|
41 | this.element.find('button#save_notebook').click(function () { | |
42 | that.save_notebook(); |
|
42 | that.save_notebook(); | |
43 | }); |
|
43 | }); | |
44 | this.element.find('input#notebook_name').keyup(function () { |
|
44 | this.element.find('input#notebook_name').keyup(function () { | |
45 | that.is_renaming(); |
|
45 | that.is_renaming(); | |
46 | }); |
|
46 | }); | |
47 | }; |
|
47 | }; | |
48 |
|
48 | |||
49 |
|
49 | |||
50 | SaveWidget.prototype.save_notebook = function () { |
|
50 | SaveWidget.prototype.save_notebook = function () { | |
51 | IPython.notebook.save_notebook(); |
|
51 | IPython.notebook.save_notebook(); | |
52 | this.set_document_title(); |
|
52 | this.set_document_title(); | |
53 | this.last_saved_name = this.get_notebook_name(); |
|
53 | this.last_saved_name = this.get_notebook_name(); | |
54 | }; |
|
54 | }; | |
55 |
|
55 | |||
56 |
|
56 | |||
57 | SaveWidget.prototype.is_renaming = function () { |
|
57 | SaveWidget.prototype.is_renaming = function () { | |
58 | if (this.get_notebook_name() !== this.last_saved_name) { |
|
58 | if (this.get_notebook_name() !== this.last_saved_name) { | |
59 | this.status_rename(); |
|
59 | this.status_rename(); | |
60 | } else { |
|
60 | } else { | |
61 | this.status_save(); |
|
61 | this.status_save(); | |
62 | }; |
|
62 | }; | |
63 | }; |
|
63 | }; | |
64 |
|
64 | |||
65 |
|
65 | |||
66 | SaveWidget.prototype.get_notebook_name = function () { |
|
66 | SaveWidget.prototype.get_notebook_name = function () { | |
67 | return this.element.find('input#notebook_name').attr('value'); |
|
67 | return this.element.find('input#notebook_name').attr('value'); | |
68 | } |
|
68 | } | |
69 |
|
69 | |||
70 |
|
70 | |||
71 | SaveWidget.prototype.set_notebook_name = function (nbname) { |
|
71 | SaveWidget.prototype.set_notebook_name = function (nbname) { | |
72 | this.element.find('input#notebook_name').attr('value',nbname); |
|
72 | this.element.find('input#notebook_name').attr('value',nbname); | |
73 | this.set_document_title(); |
|
73 | this.set_document_title(); | |
74 | this.last_saved_name = nbname; |
|
74 | this.last_saved_name = nbname; | |
75 | } |
|
75 | } | |
76 |
|
76 | |||
77 |
|
77 | |||
78 | SaveWidget.prototype.set_document_title = function () { |
|
78 | SaveWidget.prototype.set_document_title = function () { | |
79 | nbname = this.get_notebook_name(); |
|
79 | nbname = this.get_notebook_name(); | |
80 | document.title = 'IPy: ' + nbname; |
|
80 | document.title = 'IPy: ' + nbname; | |
81 | }; |
|
81 | }; | |
82 |
|
82 | |||
83 |
|
83 | |||
84 | SaveWidget.prototype.get_notebook_id = function () { |
|
84 | SaveWidget.prototype.get_notebook_id = function () { | |
85 | return this.element.find('span#notebook_id').text() |
|
85 | return this.element.find('span#notebook_id').text() | |
86 | }; |
|
86 | }; | |
87 |
|
87 | |||
88 |
|
88 | |||
89 | SaveWidget.prototype.update_url = function () { |
|
89 | SaveWidget.prototype.update_url = function () { | |
90 | var notebook_id = this.get_notebook_id(); |
|
90 | var notebook_id = this.get_notebook_id(); | |
91 | if (notebook_id !== '') { |
|
91 | if (notebook_id !== '') { | |
92 | window.history.replaceState({}, '', notebook_id); |
|
92 | window.history.replaceState({}, '', notebook_id); | |
93 | }; |
|
93 | }; | |
94 | }; |
|
94 | }; | |
95 |
|
95 | |||
96 |
|
96 | |||
97 | SaveWidget.prototype.test_notebook_name = function () { |
|
97 | SaveWidget.prototype.test_notebook_name = function () { | |
98 | var nbname = this.get_notebook_name(); |
|
98 | var nbname = this.get_notebook_name(); | |
99 | if (this.notebook_name_re.test(nbname)) { |
|
99 | if (this.notebook_name_re.test(nbname)) { | |
100 | return true; |
|
100 | return true; | |
101 | } else { |
|
101 | } else { | |
102 | var bad_name = $('<div/>'); |
|
102 | var bad_name = $('<div/>'); | |
103 | bad_name.html( |
|
103 | bad_name.html( | |
104 | "The notebook name you entered (" + |
|
104 | "The notebook name you entered (" + | |
105 | nbname + |
|
105 | nbname + | |
106 | ") is not valid. Notebook names can contain any characters except / and \\" |
|
106 | ") is not valid. Notebook names can contain any characters except / and \\" | |
107 | ); |
|
107 | ); | |
108 | bad_name.dialog({title: 'Invalid name', modal: true}); |
|
108 | bad_name.dialog({title: 'Invalid name', modal: true}); | |
109 | return false; |
|
109 | return false; | |
110 | }; |
|
110 | }; | |
111 | }; |
|
111 | }; | |
112 |
|
112 | |||
113 |
|
113 | |||
114 | SaveWidget.prototype.status_save = function () { |
|
114 | SaveWidget.prototype.status_save = function () { | |
115 | this.element.find('button#save_notebook').button('option', 'label', 'Save'); |
|
115 | this.element.find('button#save_notebook').button('option', 'label', '<u>S</u>ave'); | |
116 | this.element.find('button#save_notebook').button('enable'); |
|
116 | this.element.find('button#save_notebook').button('enable'); | |
117 | IPython.print_widget.enable(); |
|
117 | IPython.print_widget.enable(); | |
118 | }; |
|
118 | }; | |
119 |
|
119 | |||
120 |
|
120 | |||
121 | SaveWidget.prototype.status_saving = function () { |
|
121 | SaveWidget.prototype.status_saving = function () { | |
122 | this.element.find('button#save_notebook').button('option', 'label', 'Saving'); |
|
122 | this.element.find('button#save_notebook').button('option', 'label', 'Saving'); | |
123 | this.element.find('button#save_notebook').button('disable'); |
|
123 | this.element.find('button#save_notebook').button('disable'); | |
124 | IPython.print_widget.disable(); |
|
124 | IPython.print_widget.disable(); | |
125 | }; |
|
125 | }; | |
126 |
|
126 | |||
127 |
|
127 | |||
128 | SaveWidget.prototype.status_loading = function () { |
|
128 | SaveWidget.prototype.status_loading = function () { | |
129 | this.element.find('button#save_notebook').button('option', 'label', 'Loading'); |
|
129 | this.element.find('button#save_notebook').button('option', 'label', 'Loading'); | |
130 | this.element.find('button#save_notebook').button('disable'); |
|
130 | this.element.find('button#save_notebook').button('disable'); | |
131 | IPython.print_widget.disable(); |
|
131 | IPython.print_widget.disable(); | |
132 | }; |
|
132 | }; | |
133 |
|
133 | |||
134 |
|
134 | |||
135 | SaveWidget.prototype.status_rename = function () { |
|
135 | SaveWidget.prototype.status_rename = function () { | |
136 | this.element.find('button#save_notebook').button('option', 'label', 'Rename'); |
|
136 | this.element.find('button#save_notebook').button('option', 'label', 'Rename'); | |
137 | this.element.find('button#save_notebook').button('enable'); |
|
137 | this.element.find('button#save_notebook').button('enable'); | |
138 | IPython.print_widget.enable(); |
|
138 | IPython.print_widget.enable(); | |
139 | }; |
|
139 | }; | |
140 |
|
140 | |||
141 |
|
141 | |||
142 | IPython.SaveWidget = SaveWidget; |
|
142 | IPython.SaveWidget = SaveWidget; | |
143 |
|
143 | |||
144 | return IPython; |
|
144 | return IPython; | |
145 |
|
145 | |||
146 | }(IPython)); |
|
146 | }(IPython)); | |
147 |
|
147 |
@@ -1,242 +1,242 b'' | |||||
1 | <!DOCTYPE HTML> |
|
1 | <!DOCTYPE HTML> | |
2 | <html> |
|
2 | <html> | |
3 |
|
3 | |||
4 | <head> |
|
4 | <head> | |
5 | <meta charset="utf-8"> |
|
5 | <meta charset="utf-8"> | |
6 |
|
6 | |||
7 | <title>IPython Notebook</title> |
|
7 | <title>IPython Notebook</title> | |
8 |
|
8 | |||
9 | <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" /> |
|
9 | <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" /> | |
10 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> --> |
|
10 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> --> | |
11 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />--> |
|
11 | <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />--> | |
12 |
|
12 | |||
13 | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> |
|
13 | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> | |
14 | <!-- <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script> --> |
|
14 | <!-- <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script> --> | |
15 | <script type="text/javascript"> |
|
15 | <script type="text/javascript"> | |
16 | if (typeof MathJax == 'undefined') { |
|
16 | if (typeof MathJax == 'undefined') { | |
17 | console.log("Trying to load local copy of MathJax"); |
|
17 | console.log("Trying to load local copy of MathJax"); | |
18 | document.write(unescape("%3Cscript type='text/javascript' src='static/mathjax/MathJax.js%3Fconfig=TeX-AMS_HTML' charset='utf-8'%3E%3C/script%3E")); |
|
18 | document.write(unescape("%3Cscript type='text/javascript' src='static/mathjax/MathJax.js%3Fconfig=TeX-AMS_HTML' charset='utf-8'%3E%3C/script%3E")); | |
19 | } |
|
19 | } | |
20 | </script> |
|
20 | </script> | |
21 |
|
21 | |||
22 | <link rel="stylesheet" href="static/codemirror-2.12/lib/codemirror.css"> |
|
22 | <link rel="stylesheet" href="static/codemirror-2.12/lib/codemirror.css"> | |
23 | <link rel="stylesheet" href="static/codemirror-2.12/mode/rst/rst.css"> |
|
23 | <link rel="stylesheet" href="static/codemirror-2.12/mode/rst/rst.css"> | |
24 | <link rel="stylesheet" href="static/codemirror-2.12/theme/ipython.css"> |
|
24 | <link rel="stylesheet" href="static/codemirror-2.12/theme/ipython.css"> | |
25 | <link rel="stylesheet" href="static/codemirror-2.12/theme/default.css"> |
|
25 | <link rel="stylesheet" href="static/codemirror-2.12/theme/default.css"> | |
26 |
|
26 | |||
27 | <link rel="stylesheet" href="static/prettify/prettify.css"/> |
|
27 | <link rel="stylesheet" href="static/prettify/prettify.css"/> | |
28 |
|
28 | |||
29 | <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" /> |
|
29 | <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" /> | |
30 | <link rel="stylesheet" href="static/css/layout.css" type="text/css" /> |
|
30 | <link rel="stylesheet" href="static/css/layout.css" type="text/css" /> | |
31 | <link rel="stylesheet" href="static/css/base.css" type="text/css" /> |
|
31 | <link rel="stylesheet" href="static/css/base.css" type="text/css" /> | |
32 | <link rel="stylesheet" href="static/css/notebook.css" type="text/css" /> |
|
32 | <link rel="stylesheet" href="static/css/notebook.css" type="text/css" /> | |
33 | <link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" /> |
|
33 | <link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" /> | |
34 |
|
34 | |||
35 |
|
35 | |||
36 | </head> |
|
36 | </head> | |
37 |
|
37 | |||
38 | <body> |
|
38 | <body> | |
39 |
|
39 | |||
40 | <div id="header"> |
|
40 | <div id="header"> | |
41 | <span id="ipython_notebook"><h1>IPython Notebook</h1></span> |
|
41 | <span id="ipython_notebook"><h1>IPython Notebook</h1></span> | |
42 | <span id="save_widget"> |
|
42 | <span id="save_widget"> | |
43 | <input type="text" id="notebook_name" size="20"></textarea> |
|
43 | <input type="text" id="notebook_name" size="20"></textarea> | |
44 | <span id="notebook_id" style="display:none">{{notebook_id}}</span> |
|
44 | <span id="notebook_id" style="display:none">{{notebook_id}}</span> | |
45 | <button id="save_notebook">Save</button> |
|
45 | <button id="save_notebook"><u>S</u>ave</button> | |
46 | </span> |
|
46 | </span> | |
47 | <span id="kernel_status">Idle</span> |
|
47 | <span id="kernel_status">Idle</span> | |
48 | </div> |
|
48 | </div> | |
49 |
|
49 | |||
50 | <div id="main_app"> |
|
50 | <div id="main_app"> | |
51 |
|
51 | |||
52 | <div id="left_panel"> |
|
52 | <div id="left_panel"> | |
53 |
|
53 | |||
54 | <div id="notebook_section"> |
|
54 | <div id="notebook_section"> | |
55 | <h3 class="section_header">Notebook</h3> |
|
55 | <h3 class="section_header">Notebook</h3> | |
56 | <div class="section_content"> |
|
56 | <div class="section_content"> | |
57 | <div class="section_row"> |
|
57 | <div class="section_row"> | |
58 | <span id="new_open" class="section_row_buttons"> |
|
58 | <span id="new_open" class="section_row_buttons"> | |
59 | <button id="new_notebook">New</button> |
|
59 | <button id="new_notebook">New</button> | |
60 | <button id="open_notebook">Open</button> |
|
60 | <button id="open_notebook">Open</button> | |
61 | </span> |
|
61 | </span> | |
62 | <span class="section_row_header">Actions</span> |
|
62 | <span class="section_row_header">Actions</span> | |
63 | </div> |
|
63 | </div> | |
64 | <div class="section_row"> |
|
64 | <div class="section_row"> | |
65 | <span> |
|
65 | <span> | |
66 | <select id="download_format"> |
|
66 | <select id="download_format"> | |
67 | <option value="json">ipynb</option> |
|
67 | <option value="json">ipynb</option> | |
68 | <option value="py">py</option> |
|
68 | <option value="py">py</option> | |
69 | </select> |
|
69 | </select> | |
70 | </span> |
|
70 | </span> | |
71 | <span class="section_row_buttons"> |
|
71 | <span class="section_row_buttons"> | |
72 | <button id="download_notebook">Download</button> |
|
72 | <button id="download_notebook">Download</button> | |
73 | </span> |
|
73 | </span> | |
74 | </div> |
|
74 | </div> | |
75 | <div class="section_row"> |
|
75 | <div class="section_row"> | |
76 | <span class="section_row_buttons"> |
|
76 | <span class="section_row_buttons"> | |
77 | <span id="print_widget"> |
|
77 | <span id="print_widget"> | |
78 | <button id="print_notebook">Print</button> |
|
78 | <button id="print_notebook">Print</button> | |
79 | </span> |
|
79 | </span> | |
80 | </span> |
|
80 | </span> | |
81 | </div> |
|
81 | </div> | |
82 | </div> |
|
82 | </div> | |
83 | </div> |
|
83 | </div> | |
84 |
|
84 | |||
85 | <div id="cell_section"> |
|
85 | <div id="cell_section"> | |
86 | <h3 class="section_header">Cell</h3> |
|
86 | <h3 class="section_header">Cell</h3> | |
87 | <div class="section_content"> |
|
87 | <div class="section_content"> | |
88 | <div class="section_row"> |
|
88 | <div class="section_row"> | |
89 | <span class="section_row_buttons"> |
|
89 | <span class="section_row_buttons"> | |
90 | <button id="delete_cell">Delete</button> |
|
90 | <button id="delete_cell"><u>D</u>elete</button> | |
91 | </span> |
|
91 | </span> | |
92 | <span class="section_row_header">Actions</span> |
|
92 | <span class="section_row_header">Actions</span> | |
93 | </div> |
|
93 | </div> | |
94 | <div class="section_row"> |
|
94 | <div class="section_row"> | |
95 | <span id="cell_type" class="section_row_buttons"> |
|
95 | <span id="cell_type" class="section_row_buttons"> | |
96 | <button id="to_code">Code</button> |
|
96 | <button id="to_code"><u>C</u>ode</button> | |
97 | <!-- <button id="to_html">HTML</button>--> |
|
97 | <!-- <button id="to_html">HTML</button>--> | |
98 | <button id="to_markdown">Markdown</button> |
|
98 | <button id="to_markdown"><u>M</u>arkdown</button> | |
99 | </span> |
|
99 | </span> | |
100 | <span class="button_label">Format</span> |
|
100 | <span class="button_label">Format</span> | |
101 | </div> |
|
101 | </div> | |
102 | <div class="section_row"> |
|
102 | <div class="section_row"> | |
103 | <span id="cell_output" class="section_row_buttons"> |
|
103 | <span id="cell_output" class="section_row_buttons"> | |
104 | <button id="toggle_output">Toggle</button> |
|
104 | <button id="toggle_output"><u>T</u>oggle</button> | |
105 | <button id="clear_all_output">ClearAll</button> |
|
105 | <button id="clear_all_output">ClearAll</button> | |
106 | </span> |
|
106 | </span> | |
107 | <span class="button_label">Output</span> |
|
107 | <span class="button_label">Output</span> | |
108 | </div> |
|
108 | </div> | |
109 | <div class="section_row"> |
|
109 | <div class="section_row"> | |
110 | <span id="insert" class="section_row_buttons"> |
|
110 | <span id="insert" class="section_row_buttons"> | |
111 | <button id="insert_cell_above">Above</button> |
|
111 | <button id="insert_cell_above"><u>A</u>bove</button> | |
112 | <button id="insert_cell_below">Below</button> |
|
112 | <button id="insert_cell_below"><u>B</u>elow</button> | |
113 | </span> |
|
113 | </span> | |
114 | <span class="button_label">Insert</span> |
|
114 | <span class="button_label">Insert</span> | |
115 | </div> |
|
115 | </div> | |
116 | <div class="section_row"> |
|
116 | <div class="section_row"> | |
117 | <span id="move" class="section_row_buttons"> |
|
117 | <span id="move" class="section_row_buttons"> | |
118 | <button id="move_cell_up">Up</button> |
|
118 | <button id="move_cell_up">Up</button> | |
119 | <button id="move_cell_down">Down</button> |
|
119 | <button id="move_cell_down">Down</button> | |
120 | </span> |
|
120 | </span> | |
121 | <span class="button_label">Move</span> |
|
121 | <span class="button_label">Move</span> | |
122 | </div> |
|
122 | </div> | |
123 | <div class="section_row"> |
|
123 | <div class="section_row"> | |
124 | <span id="run_cells" class="section_row_buttons"> |
|
124 | <span id="run_cells" class="section_row_buttons"> | |
125 | <button id="run_selected_cell">Selected</button> |
|
125 | <button id="run_selected_cell">Selected</button> | |
126 | <button id="run_all_cells">All</button> |
|
126 | <button id="run_all_cells">All</button> | |
127 | </span> |
|
127 | </span> | |
128 | <span class="button_label">Run</span> |
|
128 | <span class="button_label">Run</span> | |
129 | </div> |
|
129 | </div> | |
130 | <div class="section_row"> |
|
130 | <div class="section_row"> | |
131 | <span id="autoindent_span"> |
|
131 | <span id="autoindent_span"> | |
132 | <input type="checkbox" id="autoindent" checked="true"></input> |
|
132 | <input type="checkbox" id="autoindent" checked="true"></input> | |
133 | </span> |
|
133 | </span> | |
134 | <span class="checkbox_label">Autoindent:</span> |
|
134 | <span class="checkbox_label">Autoindent:</span> | |
135 | </div> |
|
135 | </div> | |
136 | </div> |
|
136 | </div> | |
137 | </div> |
|
137 | </div> | |
138 |
|
138 | |||
139 | <div id="kernel_section"> |
|
139 | <div id="kernel_section"> | |
140 | <h3 class="section_header">Kernel</h3> |
|
140 | <h3 class="section_header">Kernel</h3> | |
141 | <div class="section_content"> |
|
141 | <div class="section_content"> | |
142 | <div class="section_row"> |
|
142 | <div class="section_row"> | |
143 | <span id="int_restart" class="section_row_buttons"> |
|
143 | <span id="int_restart" class="section_row_buttons"> | |
144 | <button id="int_kernel">Interrupt</button> |
|
144 | <button id="int_kernel">Interrupt</button> | |
145 | <button id="restart_kernel">Restart</button> |
|
145 | <button id="restart_kernel">Restart</button> | |
146 | </span> |
|
146 | </span> | |
147 | <span class="section_row_header">Actions</span> |
|
147 | <span class="section_row_header">Actions</span> | |
148 | </div> |
|
148 | </div> | |
149 | <div class="section_row"> |
|
149 | <div class="section_row"> | |
150 | <span id="kernel_persist"> |
|
150 | <span id="kernel_persist"> | |
151 | <input type="checkbox" id="kill_kernel"></input> |
|
151 | <input type="checkbox" id="kill_kernel"></input> | |
152 | </span> |
|
152 | </span> | |
153 | <span class="checkbox_label">Kill kernel upon exit:</span> |
|
153 | <span class="checkbox_label">Kill kernel upon exit:</span> | |
154 | </div> |
|
154 | </div> | |
155 | </div> |
|
155 | </div> | |
156 | </div> |
|
156 | </div> | |
157 |
|
157 | |||
158 | <div id="help_section"> |
|
158 | <div id="help_section"> | |
159 | <h3 class="section_header">Help</h3> |
|
159 | <h3 class="section_header">Help</h3> | |
160 | <div class="section_content"> |
|
160 | <div class="section_content"> | |
161 | <div class="section_row"> |
|
161 | <div class="section_row"> | |
162 | <span id="help_buttons0" class="section_row_buttons"> |
|
162 | <span id="help_buttons0" class="section_row_buttons"> | |
163 | <a id="python_help" href="http://docs.python.org" target="_blank">Python</a> |
|
163 | <a id="python_help" href="http://docs.python.org" target="_blank">Python</a> | |
164 | <a id="ipython_help" href="http://ipython.org/documentation.html" target="_blank">IPython</a> |
|
164 | <a id="ipython_help" href="http://ipython.org/documentation.html" target="_blank">IPython</a> | |
165 | </span> |
|
165 | </span> | |
166 | <span class="section_row_header">Links</span> |
|
166 | <span class="section_row_header">Links</span> | |
167 | </div> |
|
167 | </div> | |
168 | <div class="section_row"> |
|
168 | <div class="section_row"> | |
169 | <span id="help_buttons1" class="section_row_buttons"> |
|
169 | <span id="help_buttons1" class="section_row_buttons"> | |
170 | <a id="numpy_help" href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a> |
|
170 | <a id="numpy_help" href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a> | |
171 | <a id="scipy_help" href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a> |
|
171 | <a id="scipy_help" href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a> | |
172 | </span> |
|
172 | </span> | |
173 | </div> |
|
173 | </div> | |
174 | <div class="section_row"> |
|
174 | <div class="section_row"> | |
175 | <span id="help_buttons2" class="section_row_buttons"> |
|
175 | <span id="help_buttons2" class="section_row_buttons"> | |
176 | <a id="matplotlib_help" href="http://matplotlib.sourceforge.net/" target="_blank">MPL</a> |
|
176 | <a id="matplotlib_help" href="http://matplotlib.sourceforge.net/" target="_blank">MPL</a> | |
177 | <a id="sympy_help" href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a> |
|
177 | <a id="sympy_help" href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a> | |
178 | </span> |
|
178 | </span> | |
179 | </div> |
|
179 | </div> | |
180 | <div class="section_row"> |
|
180 | <div class="section_row"> | |
181 | <span class="help_string">run selected cell</span> |
|
181 | <span class="help_string">run selected cell</span> | |
182 | <span class="help_string_label">Shift-Enter :</span> |
|
182 | <span class="help_string_label">Shift-Enter :</span> | |
183 | </div> |
|
183 | </div> | |
184 | <div class="section_row"> |
|
184 | <div class="section_row"> | |
185 | <span class="help_string">run in terminal mode</span> |
|
185 | <span class="help_string">run in terminal mode</span> | |
186 | <span class="help_string_label">Ctrl-Enter :</span> |
|
186 | <span class="help_string_label">Ctrl-Enter :</span> | |
187 | </div> |
|
187 | </div> | |
188 | <div class="section_row"> |
|
188 | <div class="section_row"> | |
189 | <span class="help_string">show keyboard shortcuts</span> |
|
189 | <span class="help_string">show keyboard shortcuts</span> | |
190 | <span class="help_string_label">Ctrl-m h :</span> |
|
190 | <span class="help_string_label">Ctrl-m h :</span> | |
191 | </div> |
|
191 | </div> | |
192 | </div> |
|
192 | </div> | |
193 | </div> |
|
193 | </div> | |
194 |
|
194 | |||
195 | </div> |
|
195 | </div> | |
196 | <div id="left_panel_splitter"></div> |
|
196 | <div id="left_panel_splitter"></div> | |
197 | <div id="notebook_panel"> |
|
197 | <div id="notebook_panel"> | |
198 | <div id="notebook"></div> |
|
198 | <div id="notebook"></div> | |
199 | <div id="pager_splitter"></div> |
|
199 | <div id="pager_splitter"></div> | |
200 | <div id="pager"></div> |
|
200 | <div id="pager"></div> | |
201 | </div> |
|
201 | </div> | |
202 |
|
202 | |||
203 | </div> |
|
203 | </div> | |
204 |
|
204 | |||
205 | <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script> |
|
205 | <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script> | |
206 | <script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script> |
|
206 | <script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script> | |
207 | <script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script> |
|
207 | <script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script> | |
208 |
|
208 | |||
209 | <script src="static/codemirror-2.12/lib/codemirror.js" charset="utf-8"></script> |
|
209 | <script src="static/codemirror-2.12/lib/codemirror.js" charset="utf-8"></script> | |
210 | <script src="static/codemirror-2.12/mode/python/python.js" charset="utf-8"></script> |
|
210 | <script src="static/codemirror-2.12/mode/python/python.js" charset="utf-8"></script> | |
211 | <script src="static/codemirror-2.12/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script> |
|
211 | <script src="static/codemirror-2.12/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script> | |
212 | <script src="static/codemirror-2.12/mode/xml/xml.js" charset="utf-8"></script> |
|
212 | <script src="static/codemirror-2.12/mode/xml/xml.js" charset="utf-8"></script> | |
213 | <script src="static/codemirror-2.12/mode/javascript/javascript.js" charset="utf-8"></script> |
|
213 | <script src="static/codemirror-2.12/mode/javascript/javascript.js" charset="utf-8"></script> | |
214 | <script src="static/codemirror-2.12/mode/css/css.js" charset="utf-8"></script> |
|
214 | <script src="static/codemirror-2.12/mode/css/css.js" charset="utf-8"></script> | |
215 | <script src="static/codemirror-2.12/mode/rst/rst.js" charset="utf-8"></script> |
|
215 | <script src="static/codemirror-2.12/mode/rst/rst.js" charset="utf-8"></script> | |
216 |
|
216 | |||
217 | <script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script> |
|
217 | <script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script> | |
218 |
|
218 | |||
219 | <script src="static/prettify/prettify.js" charset="utf-8"></script> |
|
219 | <script src="static/prettify/prettify.js" charset="utf-8"></script> | |
220 |
|
220 | |||
221 | <script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script> |
|
221 | <script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script> | |
222 | <script src="static/js/utils.js" type="text/javascript" charset="utf-8"></script> |
|
222 | <script src="static/js/utils.js" type="text/javascript" charset="utf-8"></script> | |
223 | <script src="static/js/cell.js" type="text/javascript" charset="utf-8"></script> |
|
223 | <script src="static/js/cell.js" type="text/javascript" charset="utf-8"></script> | |
224 | <script src="static/js/codecell.js" type="text/javascript" charset="utf-8"></script> |
|
224 | <script src="static/js/codecell.js" type="text/javascript" charset="utf-8"></script> | |
225 | <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script> |
|
225 | <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script> | |
226 | <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script> |
|
226 | <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script> | |
227 | <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script> |
|
227 | <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script> | |
228 | <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script> |
|
228 | <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script> | |
229 | <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script> |
|
229 | <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script> | |
230 | <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script> |
|
230 | <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script> | |
231 | <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script> |
|
231 | <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script> | |
232 | <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script> |
|
232 | <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script> | |
233 | <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script> |
|
233 | <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script> | |
234 | <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script> |
|
234 | <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script> | |
235 | <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script> |
|
235 | <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script> | |
236 |
|
236 | |||
237 |
|
237 | |||
238 | </body> |
|
238 | </body> | |
239 |
|
239 | |||
240 | </html> |
|
240 | </html> | |
241 |
|
241 | |||
242 |
|
242 |
General Comments 0
You need to be logged in to leave comments.
Login now