mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-08-12 12:10:24 +08:00
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
// we want strict javascript that fails
|
|
// on ambiguous syntax
|
|
"using strict";
|
|
|
|
// do not use notebook loaded event as it is re-triggerd on
|
|
// revert to checkpoint but this allow extesnsion to be loaded
|
|
// late enough to work.
|
|
//
|
|
|
|
$([IPython.events]).on('app_initialized.NotebookApp', function(){
|
|
|
|
|
|
/** Use path to js file relative to /static/ dir without leading slash, or
|
|
* js extension.
|
|
* Link directly to file is js extension.
|
|
*
|
|
* first argument of require is a **list** that can contains several modules if needed.
|
|
**/
|
|
|
|
// require(['custom/noscroll']);
|
|
// require(['custom/clean_start'])
|
|
// require(['custom/toggle_all_line_number'])
|
|
// require(['custom/gist_it']);
|
|
|
|
/**
|
|
* Link to entrypoint if extesnsion is a folder.
|
|
* to be consistent with commonjs module, the entrypoint is main.js
|
|
* here youcan also trigger a custom function on load that will do extra
|
|
* action with the module if needed
|
|
**/
|
|
// require(['custom/slidemode/main'],function(slidemode){
|
|
// // do stuff
|
|
// })
|
|
|
|
|
|
|
|
});
|