##// END OF EJS Templates
Merge pull request #4780 from ellisonbg/uiexample...
Brian E. Granger -
r14104:1642e859 merge
parent child Browse files
Show More
@@ -163,7 +163,7 b''
163 163 "outputs": [
164 164 {
165 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</span></div></div><div class=\"box-flex0\"><div class=\"quickhelp\"><span class=\"shortcut_key\">up</span><span class=\"shortcut_descr\"> : select previous cell</span></div><div class=\"quickhelp\"><span class=\"shortcut_key\">down</span><span class=\"shortcut_descr\"> : select next cell</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>"
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 168 "output_type": "display_data"
169 169 },
@@ -176,11 +176,11 b''
176 176 "metadata": {},
177 177 "output_type": "display_data",
178 178 "text": [
179 "<IPython.core.display.Javascript at 0x10e441250>"
179 "<IPython.core.display.Javascript at 0x10e8d1a50>"
180 180 ]
181 181 }
182 182 ],
183 "prompt_number": 14
183 "prompt_number": 17
184 184 },
185 185 {
186 186 "cell_type": "markdown",
@@ -223,11 +223,11 b''
223 223 "metadata": {},
224 224 "output_type": "display_data",
225 225 "text": [
226 "<IPython.core.display.Javascript at 0x10e441410>"
226 "<IPython.core.display.Javascript at 0x10e8d1650>"
227 227 ]
228 228 }
229 229 ],
230 "prompt_number": 15
230 "prompt_number": 18
231 231 },
232 232 {
233 233 "cell_type": "markdown",
@@ -281,7 +281,7 b''
281 281 "\n",
282 282 "IPython.keyboard_manager.command_shortcuts.add_shortcut('r', {\n",
283 283 " help : 'run cell',\n",
284 " help_index : 'aa',\n",
284 " help_index : 'zz',\n",
285 285 " handler : function (event) {\n",
286 286 " IPython.notebook.execute_cell();\n",
287 287 " return false;\n",
@@ -291,11 +291,11 b''
291 291 "metadata": {},
292 292 "output_type": "display_data",
293 293 "text": [
294 "<IPython.core.display.Javascript at 0x1019ba990>"
294 "<IPython.core.display.Javascript at 0x10e8d1890>"
295 295 ]
296 296 }
297 297 ],
298 "prompt_number": 6
298 "prompt_number": 7
299 299 },
300 300 {
301 301 "cell_type": "markdown",
@@ -365,7 +365,7 b''
365 365 "metadata": {},
366 366 "output_type": "display_data",
367 367 "text": [
368 "<IPython.core.display.Javascript at 0x1019ba950>"
368 "<IPython.core.display.Javascript at 0x10e8d1950>"
369 369 ]
370 370 }
371 371 ],
@@ -397,7 +397,7 b''
397 397 "cell_type": "code",
398 398 "collapsed": false,
399 399 "input": [
400 "from IPython.display import Javascript, display\n",
400 "from IPython.display import Javascript, display, HTML\n",
401 401 "\n",
402 402 "t = \"\"\"var help = IPython.quick_help.build_{0}_help();\n",
403 403 "help.children().first().remove();\n",
@@ -407,12 +407,36 b''
407 407 " display(Javascript(t.format('command')))\n",
408 408 "\n",
409 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 "div.quickhelp {float: none; width: 100%;}\n",
417 "</style>\n",
418 "\"\"\"))"
411 419 ],
412 420 "language": "python",
413 421 "metadata": {},
414 "outputs": [],
415 "prompt_number": 2
422 "outputs": [
423 {
424 "html": [
425 "\n",
426 "<style>\n",
427 ".shortcut_key {display: inline-block; width: 15ex; text-align: right; font-family: monospace;}\n",
428 ".shortcut_descr {display: inline-block;}\n",
429 "div.quickhelp {float: none; width: 100%;}\n",
430 "</style>\n"
431 ],
432 "metadata": {},
433 "output_type": "display_data",
434 "text": [
435 "<IPython.core.display.HTML at 0x10e8b0710>"
436 ]
437 }
438 ],
439 "prompt_number": 16
416 440 }
417 441 ],
418 442 "metadata": {}
General Comments 0
You need to be logged in to leave comments. Login now