Show More
@@ -17,12 +17,14 b'' | |||
|
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 |
|
19 | 19 | * |
|
20 |
* $([IPython.events]).on(' |
|
|
20 | * $([IPython.events]).on('app_initialized.NotebookApp', function(){ | |
|
21 | 21 | * IPython.toolbar.add_buttons_group([ |
|
22 | 22 | * { |
|
23 | 23 | * 'label' : 'run qtconsole', |
|
24 |
* 'icon' : ' |
|
|
25 |
* 'callback': function(){ |
|
|
24 | * 'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons | |
|
25 | * 'callback': function () { | |
|
26 | * IPython.notebook.kernel.execute('%qtconsole') | |
|
27 | * } | |
|
26 | 28 | * } |
|
27 | 29 | * // add more button here if needed. |
|
28 | 30 | * ]); |
General Comments 0
You need to be logged in to leave comments.
Login now