You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
793 B
25 lines
793 B
// Launch QT Console attached to the current kernel
|
|
|
|
define([
|
|
'base/js/namespace',
|
|
'base/js/events'
|
|
], function(Jupyter, events) {
|
|
var load_ipython_extension = function () {
|
|
Jupyter.toolbar.add_buttons_group([
|
|
/**
|
|
* Button to launch QTConsole
|
|
*/
|
|
Jupyter.keyboard_manager.actions.register ({
|
|
'help' : 'Run QTConsole',
|
|
'icon' : 'fa-terminal',
|
|
'handler': function () {
|
|
Jupyter.notebook.kernel.execute('%qtconsole')
|
|
}
|
|
}, 'run-qtconsole', 'qtconsole')
|
|
]);
|
|
};
|
|
return {
|
|
load_ipython_extension : load_ipython_extension
|
|
};
|
|
});
|