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.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/jupyter_contrib_nbextensions/nbextensions/qtconsole/qtconsole.js

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
};
});