Show More
@@ -238,7 +238,7 b' div.output_area {' | |||
|
238 | 238 | /* This class is for the output subarea inside the output_area and after |
|
239 | 239 | the prompt div. */ |
|
240 | 240 | div.output_subarea { |
|
241 |
padding: 0.4em 0.4em 0.4em |
|
|
241 | padding: 0.44em 0.4em 0.4em 1px; | |
|
242 | 242 | } |
|
243 | 243 | |
|
244 | 244 | /* The rest of the output_* classes are for special styling of the different |
@@ -225,10 +225,33 b' var IPython = (function (IPython) {' | |||
|
225 | 225 | }; |
|
226 | 226 | |
|
227 | 227 | |
|
228 | ||
|
229 | ||
|
230 | ||
|
231 | CodeCell.input_prompt_classical = function (prompt_value, lines_number) { | |
|
232 | var ns = prompt_value || " "; | |
|
233 | return 'In [' + ns + ']:' | |
|
234 | }; | |
|
235 | ||
|
236 | CodeCell.input_prompt_continuation = function (prompt_value, lines_number) { | |
|
237 | var html = [CodeCell.input_prompt_classical(prompt_value, lines_number)]; | |
|
238 | for(var i=1; i < lines_number; i++){html.push(['...:'])}; | |
|
239 | return html.join('</br>') | |
|
240 | }; | |
|
241 | ||
|
242 | CodeCell.input_prompt_function = CodeCell.input_prompt_classical; | |
|
243 | ||
|
244 | ||
|
228 | 245 | CodeCell.prototype.set_input_prompt = function (number) { |
|
229 | this.input_prompt_number = number; | |
|
230 | var ns = number || " "; | |
|
231 | this.element.find('div.input_prompt').html('In [' + ns + ']:'); | |
|
246 | var nline = 1 | |
|
247 | if( this.code_mirror != undefined) { | |
|
248 | nline = this.code_mirror.lineCount(); | |
|
249 | } | |
|
250 | if (number){ | |
|
251 | this.input_prompt_number = number; | |
|
252 | } | |
|
253 | var prompt_html = CodeCell.input_prompt_function(this.input_prompt_number, nline); | |
|
254 | this.element.find('div.input_prompt').html(prompt_html); | |
|
232 | 255 | }; |
|
233 | 256 | |
|
234 | 257 |
@@ -550,6 +550,11 b' var IPython = (function (IPython) {' | |||
|
550 | 550 | }; |
|
551 | 551 | |
|
552 | 552 | |
|
553 | Notebook.prototype.insert_cell_at_bottom = function (type){ | |
|
554 | var len = this.ncells(); | |
|
555 | return this.insert_cell_below(type,len-1); | |
|
556 | } | |
|
557 | ||
|
553 | 558 | Notebook.prototype.insert_cell_below = function (type, index) { |
|
554 | 559 | // type = ('code','html','markdown') |
|
555 | 560 | // index = cell index or undefined to insert below selected |
General Comments 0
You need to be logged in to leave comments.
Login now