I have the following configuration for shortcuts that works after launching in the cell of a Jupiter laptop:
%%javascript IPython.keyboard_manager.command_shortcuts.add_shortcut('ctrl-q', { help: 'Clear all output', // This text will show up on the help page (CTRL-M h or ESC h) handler: function (event) { // Function that gets invoked if (IPython.notebook.mode == 'command') { IPython.notebook.clear_all_output(); return false; } return true; } });
How to configure a Jupiter laptop to automatically initialize at startup?
I tried adding the same code (without %%javascript ) to C:\Users\<username>\.ipython\profile_default\static\custom\custom.js , but it did not work.
I have only one profile created using ipython profile create , Python 3.3, Windows 7.
Thanks in advance.
ipython ipython-notebook jupyter-notebook jupyter startup
Apogentus
source share