File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 20
20
* Instances are created after the loading of this file and might need to be accessed using events:
21
21
* define([
22
22
* 'base/js/namespace',
23
- * 'base/js/events'
24
- * ], function(IPython, events) {
25
- * events.on("app_initialized.NotebookApp", function () {
23
+ * 'base/js/promises'
24
+ * ], function(IPython, promises) {
25
+ * promises.app_initialized.then(function (appName) {
26
+ * if (appName !== 'NotebookApp') return;
26
27
* IPython.keyboard_manager....
27
28
* });
28
29
* });
34
35
*
35
36
* define([
36
37
* 'base/js/namespace',
37
- * 'base/js/events'
38
- * ], function(IPython, events) {
39
- * events.on('app_initialized.NotebookApp', function(){
38
+ * 'base/js/promises'
39
+ * ], function(IPython, promises) {
40
+ * promises.app_initialized.then(function (appName) {
41
+ * if (appName !== 'NotebookApp') return;
40
42
* IPython.toolbar.add_buttons_group([
41
43
* {
42
44
* 'label' : 'run qtconsole',
You can’t perform that action at this time.
0 commit comments