Show More
@@ -12,7 +12,7 b'' | |||
|
12 | 12 | * |
|
13 | 13 | * Same thing with `profile/static/custom/custom.css` to inject custom css into the notebook. |
|
14 | 14 | * |
|
15 | * Example : | |
|
15 | * __Example 1:__ | |
|
16 | 16 | * |
|
17 | 17 | * Create a custom button in toolbar that execute `%qtconsole` in kernel |
|
18 | 18 | * and hence open a qtconsole attached to the same kernel as the current notebook |
@@ -30,7 +30,16 b'' | |||
|
30 | 30 | * ]); |
|
31 | 31 | * }); |
|
32 | 32 | * |
|
33 | * Example : | |
|
33 | * __Example 2:__ | |
|
34 | * | |
|
35 | * At the completion of the dashboard loading, load an unofficial javascript extension | |
|
36 | * that is installed in profile/static/custom/ | |
|
37 | * | |
|
38 | * $([IPython.events]).on('app_initialized.DashboardApp', function(){ | |
|
39 | * require(['custom/unofficial_extension.js']) | |
|
40 | * }); | |
|
41 | * | |
|
42 | * __Example 3:__ | |
|
34 | 43 | * |
|
35 | 44 | * Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );` |
|
36 | 45 | * to load custom script into the notebook. |
@@ -70,7 +70,8 b' $(document).ready(function () {' | |||
|
70 | 70 | enable_autorefresh(); |
|
71 | 71 | |
|
72 | 72 | IPython.page.show(); |
|
73 | ||
|
73 | $([IPython.events]).trigger('app_initialized.DashboardApp'); | |
|
74 | ||
|
74 | 75 | // bound the upload method to the on change of the file select list |
|
75 | 76 | $("#alternate_upload").change(function (event){ |
|
76 | 77 | IPython.notebook_list.handleFilesUpload(event,'form'); |
General Comments 0
You need to be logged in to leave comments.
Login now