##// END OF EJS Templates
add utils and docs for metadata UI...
add utils and docs for metadata UI add aconvenient utils to generate UI for checkboxes and use it to generate 3 checkboxes for new_section new_subsection new_fragment

File last commit:

r8741:9f349976
r9056:33805a90
Show More
custom.js
35 lines | 1.2 KiB | application/javascript | JavascriptLexer
// leave at least 2 line with only a star on it below, or doc generation fails
/**
*
*
* Placeholder for custom user javascript
* mainly to be overridden in profile/static/js/custom.js
* This will always be an empty file in IPython
*
* User could add any javascript in the `profile/static/js/custom.js` file
* (and should create it if it does not exist).
* It will be executed by the ipython notebook at load time.
*
* Same thing with `profile/static/css/custom.css` to inject custom css into the notebook.
*
* Example :
*
* 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.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')}
* }
* // add more button here if needed.
* ]);
* });
*
* @module IPython
* @namespace IPython
* @class customjs
* @static
*/