From 99757b9df7b7e32b368e82d6bc387c4fdfa0f222 2013-09-04 22:16:33 From: MinRK Date: 2013-09-04 22:16:33 Subject: [PATCH] Backport PR #4143: update example custom.js fix event for at-page-load events use font-awesome icon, not jquery-ui closes #3998 --- diff --git a/IPython/html/static/custom/custom.js b/IPython/html/static/custom/custom.js index a276b2d..f8d1afe 100644 --- a/IPython/html/static/custom/custom.js +++ b/IPython/html/static/custom/custom.js @@ -17,12 +17,14 @@ * Create a custom button in toolbar that execute `%qtconsole` in kernel * and hence open a qtconsole attached to the same kernel as the current notebook * - * $([IPython.events]).on('notebook_loaded.Notebook', function(){ + * $([IPython.events]).on('app_initialized.NotebookApp', function(){ * IPython.toolbar.add_buttons_group([ * { * 'label' : 'run qtconsole', - * 'icon' : 'ui-icon-calculator', // select your icon from http://jqueryui.com/themeroller/ - * 'callback': function(){IPython.notebook.kernel.execute('%qtconsole')} + * 'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons + * 'callback': function () { + * IPython.notebook.kernel.execute('%qtconsole') + * } * } * // add more button here if needed. * ]);