-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathindex.js
More file actions
36 lines (29 loc) · 851 Bytes
/
Copy pathindex.js
File metadata and controls
36 lines (29 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const path = require('path');
const $ = require('jquery');
require("jquery-ui");
global.__VP_CSS_LOADER__ = function(path) {
return path + '.css';
}
global.__VP_TEXT_LOADER__ = function(path) {
return '!!text-loader!' + path;
}
global.__VP_RAW_LOADER__ = function(path) {
return path;
}
global.$ = $;
global.vpBase = path.resolve(__dirname, "lib") + '/';
module.exports = [{
id: 'visualpython:entry',
autoStart: true,
activate: function (app) {
console.log(
'JupyterLab extension visualpython is activated!'
);
global.vpExtType = 'lab';
global.vpLab = app;
const VpPanel = require('./VpPanel');
// Add vp to the right area:
var vpPanel = new VpPanel(app);
app.shell.add(vpPanel, 'right', { rank: 900, type: 'Visual Python' });
}
}];