How to add keyboard shortcuts permanently to Jupyter (ipython) notebook?

前端 未结 4 719
野的像风
野的像风 2021-01-04 11:49

I have the following configuration for shortcuts, that works after running it in the cell of Jupiter notebook:

%%javascript


IPython.keyboard_manager.comman         


        
4条回答
  •  感动是毒
    2021-01-04 12:13

    custom.js is the correct place for this code. Try wrapping it as follows (don't forget the return true before the end of the block):

    $([IPython.events]).on("app_initialized.NotebookApp", function () {
        
    
        return true;
    });
    

提交回复
热议问题