Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying index.js and extension.js to the static folder in qgrid/qgrid. #373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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;