Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
downgraded to jupyter v2
Browse files Browse the repository at this point in the history
  • Loading branch information
marjo-luc committed Jan 4, 2022
1 parent 4f2b691 commit d8381e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 38 deletions.
6 changes: 3 additions & 3 deletions user_meta_form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"watch": "tsc -w"
},
"dependencies": {
"@jupyterlab/application": "^3.2.5",
"@jupyterlab/apputils": "^3.2.5",
"@jupyterlab/coreutils": "^5.2.5",
"@jupyterlab/application": "^2.1.2",
"@jupyterlab/apputils": "^2.1.2",
"@jupyterlab/coreutils": "^4.1.0",
"@lumino/widgets": "^1.13.2",
"@types/node": "^14.0.14",
"bufferutil": "^4.0.1",
Expand Down
36 changes: 1 addition & 35 deletions user_meta_form/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
// import {
// JupyterFrontEnd, JupyterFrontEndPlugin
// } from '@jupyterlab/application';

// import {
// ICommandPalette
// } from '@jupyterlab/apputils';

// const extension: JupyterFrontEndPlugin<void> = {
// id: 'user-metadata-form',
// requires: [ICommandPalette],
// autoStart: true,
// activate (app: JupyterFrontEnd, palette: ICommandPalette): void {
// /**
// * Initialization data for the jupyterlab-ext extension.
// */

// // mainMenu.addMenu(menu, { rank: 40 });
// // app.commands.addCommand(command, {
// // label: 'Share your own data',
// // execute: () => {
// // const url = 'https://questionnaire.maap-project.org/';
// // window.open(url)
// // }
// // });

// // palette.addItem({ command: command, category: 'Metadata' });
// console.log("user_meta_form activated");

// }
// };

// export default extension;

import {
JupyterFrontEnd,
JupyterFrontEndPlugin,
Expand Down Expand Up @@ -65,7 +31,7 @@ const extension: JupyterFrontEndPlugin<void> = {
});

// Add the command to the command palette
const category = 'Extension Examples';
const category = 'Metadata';
palette.addItem({ command, category, args: { origin: 'from palette' } });
},
};
Expand Down

0 comments on commit d8381e2

Please sign in to comment.