Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions qgrid/static/extension.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// This file contains the javascript that is run when the notebook is loaded.
// It contains some requirejs configuration and the `load_ipython_extension`
// which is required for any notebook extension.

// Configure requirejs
if (window.require) {
window.require.config({
map: {
"*" : {
"qgrid": "nbextensions/qgrid/index"
}
}
});
}

// Export the required load_ipython_extension
module.exports = {
load_ipython_extension: function() {}
};
4 changes: 4 additions & 0 deletions qgrid/static/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Entry point for the notebook bundle containing custom model definitions.
// Export widget models and views, and the npm package version number.
module.exports = require('./qgrid.widget.js');
module.exports.version = require('../package.json').version;