display_edit_shortcuts() display_command_shortcuts() %%javascript IPython.keyboard_manager.command_shortcuts.add_shortcut('r', { help : 'run cell', help_index : 'zz', handler : function (event) { IPython.notebook.execute_cell(); return false; }} ); %%javascript IPython.keyboard_manager.command_shortcuts.add_shortcut('r', function (event) { IPython.notebook.execute_cell(); return false; }); %%javascript IPython.keyboard_manager.command_shortcuts.remove_shortcut('r'); from IPython.display import Javascript, display, HTML t = """var help = IPython.quick_help.build_{0}_help(); help.children().first().remove(); this.append_output({{output_type: 'display_data', html: help.html()}});""" def display_command_shortcuts(): display(Javascript(t.format('command'))) def display_edit_shortcuts(): display(Javascript(t.format('edit'))) display(HTML(""" """))