Show More
@@ -163,7 +163,7 b'' | |||||
163 | "outputs": [ |
|
163 | "outputs": [ | |
164 | { |
|
164 | { | |
165 | "html": [ |
|
165 | "html": [ | |
166 |
"<div class=\"hbox\"><div class=\"box-flex0\"><div class=\"quickhelp\"><span class=\"shortcut_key\">esc</span><span class=\"shortcut_descr\"> : command mode</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">ctrl+m</span><span class=\"shortcut_descr\"> : command mode</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">shift+enter</span><span class=\"shortcut_descr\"> : run cell</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">ctrl+enter</span><span class=\"shortcut_descr\"> : run cell, select below</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">alt+enter</span><span class=\"shortcut_descr\"> : run cell, insert below |
|
166 | "<div class=\"hbox\"><div class=\"box-flex0\"><div class=\"quickhelp\"><span class=\"shortcut_key\">esc</span><span class=\"shortcut_descr\"> : command mode</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">ctrl+m</span><span class=\"shortcut_descr\"> : command mode</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">shift+enter</span><span class=\"shortcut_descr\"> : run cell</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">ctrl+enter</span><span class=\"shortcut_descr\"> : run cell, select below</span></div></div><div class=\"box-flex0\"><div class=\"quickhelp\"><span class=\"shortcut_key\">alt+enter</span><span class=\"shortcut_descr\"> : run cell, insert below</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">alt+-</span><span class=\"shortcut_descr\"> : split cell</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">meta+s</span><span class=\"shortcut_descr\"> : save notebook</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">ctrl+s</span><span class=\"shortcut_descr\"> : save notebook</span></div></div></div>" | |
167 | ], |
|
167 | ], | |
168 | "output_type": "display_data" |
|
168 | "output_type": "display_data" | |
169 | }, |
|
169 | }, | |
@@ -176,7 +176,7 b'' | |||||
176 | "metadata": {}, |
|
176 | "metadata": {}, | |
177 | "output_type": "display_data", |
|
177 | "output_type": "display_data", | |
178 | "text": [ |
|
178 | "text": [ | |
179 |
"<IPython.core.display.Javascript at 0x10e |
|
179 | "<IPython.core.display.Javascript at 0x10e8d1a50>" | |
180 | ] |
|
180 | ] | |
181 | } |
|
181 | } | |
182 | ], |
|
182 | ], | |
@@ -223,7 +223,7 b'' | |||||
223 | "metadata": {}, |
|
223 | "metadata": {}, | |
224 | "output_type": "display_data", |
|
224 | "output_type": "display_data", | |
225 | "text": [ |
|
225 | "text": [ | |
226 |
"<IPython.core.display.Javascript at 0x10e |
|
226 | "<IPython.core.display.Javascript at 0x10e8d11d0>" | |
227 | ] |
|
227 | ] | |
228 | } |
|
228 | } | |
229 | ], |
|
229 | ], | |
@@ -281,7 +281,7 b'' | |||||
281 | "\n", |
|
281 | "\n", | |
282 | "IPython.keyboard_manager.command_shortcuts.add_shortcut('r', {\n", |
|
282 | "IPython.keyboard_manager.command_shortcuts.add_shortcut('r', {\n", | |
283 | " help : 'run cell',\n", |
|
283 | " help : 'run cell',\n", | |
284 |
" help_index : ' |
|
284 | " help_index : 'zz',\n", | |
285 | " handler : function (event) {\n", |
|
285 | " handler : function (event) {\n", | |
286 | " IPython.notebook.execute_cell();\n", |
|
286 | " IPython.notebook.execute_cell();\n", | |
287 | " return false;\n", |
|
287 | " return false;\n", | |
@@ -291,11 +291,11 b'' | |||||
291 | "metadata": {}, |
|
291 | "metadata": {}, | |
292 | "output_type": "display_data", |
|
292 | "output_type": "display_data", | |
293 | "text": [ |
|
293 | "text": [ | |
294 |
"<IPython.core.display.Javascript at 0x10 |
|
294 | "<IPython.core.display.Javascript at 0x10e8d1890>" | |
295 | ] |
|
295 | ] | |
296 | } |
|
296 | } | |
297 | ], |
|
297 | ], | |
298 |
"prompt_number": |
|
298 | "prompt_number": 7 | |
299 | }, |
|
299 | }, | |
300 | { |
|
300 | { | |
301 | "cell_type": "markdown", |
|
301 | "cell_type": "markdown", | |
@@ -365,7 +365,7 b'' | |||||
365 | "metadata": {}, |
|
365 | "metadata": {}, | |
366 | "output_type": "display_data", |
|
366 | "output_type": "display_data", | |
367 | "text": [ |
|
367 | "text": [ | |
368 |
"<IPython.core.display.Javascript at 0x101 |
|
368 | "<IPython.core.display.Javascript at 0x10e8d1950>" | |
369 | ] |
|
369 | ] | |
370 | } |
|
370 | } | |
371 | ], |
|
371 | ], | |
@@ -397,7 +397,7 b'' | |||||
397 | "cell_type": "code", |
|
397 | "cell_type": "code", | |
398 | "collapsed": false, |
|
398 | "collapsed": false, | |
399 | "input": [ |
|
399 | "input": [ | |
400 | "from IPython.display import Javascript, display\n", |
|
400 | "from IPython.display import Javascript, display, HTML\n", | |
401 | "\n", |
|
401 | "\n", | |
402 | "t = \"\"\"var help = IPython.quick_help.build_{0}_help();\n", |
|
402 | "t = \"\"\"var help = IPython.quick_help.build_{0}_help();\n", | |
403 | "help.children().first().remove();\n", |
|
403 | "help.children().first().remove();\n", | |
@@ -407,12 +407,34 b'' | |||||
407 | " display(Javascript(t.format('command')))\n", |
|
407 | " display(Javascript(t.format('command')))\n", | |
408 | "\n", |
|
408 | "\n", | |
409 | "def display_edit_shortcuts():\n", |
|
409 | "def display_edit_shortcuts():\n", | |
410 |
" display(Javascript(t.format('edit'))) |
|
410 | " display(Javascript(t.format('edit')))\n", | |
|
411 | "\n", | |||
|
412 | "display(HTML(\"\"\"\n", | |||
|
413 | "<style>\n", | |||
|
414 | ".shortcut_key {display: inline-block; width: 15ex; text-align: right; font-family: monospace;}\n", | |||
|
415 | ".shortcut_descr {display: inline-block;}\n", | |||
|
416 | "</style>\n", | |||
|
417 | "\"\"\"))" | |||
411 | ], |
|
418 | ], | |
412 | "language": "python", |
|
419 | "language": "python", | |
413 | "metadata": {}, |
|
420 | "metadata": {}, | |
414 |
"outputs": [ |
|
421 | "outputs": [ | |
415 | "prompt_number": 2 |
|
422 | { | |
|
423 | "html": [ | |||
|
424 | "\n", | |||
|
425 | "<style>\n", | |||
|
426 | ".shortcut_key {display: inline-block; width: 15ex; text-align: right; font-family: monospace;}\n", | |||
|
427 | ".shortcut_descr {display: inline-block;}\n", | |||
|
428 | "</style>\n" | |||
|
429 | ], | |||
|
430 | "metadata": {}, | |||
|
431 | "output_type": "display_data", | |||
|
432 | "text": [ | |||
|
433 | "<IPython.core.display.HTML at 0x10e8b0690>" | |||
|
434 | ] | |||
|
435 | } | |||
|
436 | ], | |||
|
437 | "prompt_number": 13 | |||
416 | } |
|
438 | } | |
417 | ], |
|
439 | ], | |
418 | "metadata": {} |
|
440 | "metadata": {} |
General Comments 0
You need to be logged in to leave comments.
Login now