まず(1)のコメントのON/OFFの件ですが、デフォルトのショートカットが登録されていると思います。
Ctrl + /
にて動作すると思いますので確認ください。
次に (2)Restart & Run All と (3)** Run All** に関してですが、
カスタムショートカットを登録するしかなさそうです。
http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Custom%20Keyboard%20Shortcuts.html
~/.jupyter/custom/custom.js を作成して、以下のように記述してみてください。
JavaScript
1Jupyter.keyboard_manager.command_shortcuts.add_shortcut('shift-x',
2 function(event) {
3 IPython.notebook.execute_all_cells();
4 return false;
5 }
6);
7
8Jupyter.keyboard_manager.command_shortcuts.add_shortcut('ctrl-x',
9 function(event) {
10 IPython.notebook.kernel.restart();
11 setTimeout(function(){ IPython.notebook.execute_all_cells(); }, 100);
12 return false;
13 }
14);
Jupyter notebookを再起動するとショートカットが動作すると思います。
上のコードではショートカットキーを 'shift-x' 'ctrl-x'に 割り振っておりますので適当に修正してください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/29 03:08