##// END OF EJS Templates
document custom.js
Matthias BUSSONNIER -
Show More
@@ -1,7 +1,32 b''
1 /*
1 // leave at least 2 line with only a star on it below, or doc generation fails
2 Placeholder for custom user javascript
2 /**
3
3 *
4 mainly to be overridden in profile/static/js/custom.js
4 *
5
5 * Placeholder for custom user javascript
6 This will always be an empty file in IPython
6 * mainly to be overridden in profile/static/js/custom.js
7 */
7 * This will always be an empty file in IPython
8 *
9 * User could add any javascript in the `profile/static/js/custom.js` file
10 * (and should create it if it does not exist).
11 * It will be executed by the ipython notebook at load time.
12 *
13 * Example
14 * Create a custom button in toolbar that execute `%qtconsole` in kernel
15 * and hence open a qtconsole attached to the same kernel as the current notebook
16 *
17 * $([IPython.events]).on('notebook_loaded.Notebook', function(){
18 * IPython.toolbar.add_buttons_group([
19 * {
20 * 'label' : 'run qtconsole',
21 * 'icon' : 'ui-icon-calculator', // select your icon from http://jqueryui.com/themeroller/
22 * 'callback': function(){IPython.notebook.kernel.execute('%qtconsole')}
23 * }
24 * // add more button here if needed.
25 * ]);
26 * });
27 *
28 * @module IPython
29 * @namespace IPython
30 * @class customjs
31 * @static
32 */
General Comments 0
You need to be logged in to leave comments. Login now