Skip to content

Commit

Permalink
Merge pull request #94 from timkpaine/jlab3
Browse files Browse the repository at this point in the history
comm is a promise now, upping jlab version, upping package version
  • Loading branch information
texodus authored Apr 19, 2018
2 parents 0beb7ba + 588e52a commit 14f59b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/perspective-jupyterlab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"@jpmorganchase/perspective-viewer": "^0.1.8",
"@jpmorganchase/perspective-viewer-highcharts": "^0.1.8",
"@jpmorganchase/perspective-viewer-hypergrid": "^0.1.8",
"@jupyterlab/application": "^0.15.0",
"@jupyterlab/application": "^0.16.0",
"@jupyterlab/rendermime-interfaces": "^1.0.0",
"@jupyterlab/services": "^1.1.1-0",
"@jupyterlab/services": "^2.0.0",
"@phosphor/messaging": "^1.2.2",
"@phosphor/widgets": "^1.5.0",
"@types/socket.io-client": "^1.4.0",
Expand Down
17 changes: 9 additions & 8 deletions packages/perspective-jupyterlab/src/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@ export class RenderedPSP extends Widget implements IRenderMime.IRenderer {
if (sessionModels[i].kernel.id === kernelId) {
Session.connectTo(sessionModels[i]).then(session => {

let comm = session.kernel.connectToComm(name + '/' + channel);
comm.open('ack');
comm.onMsg = (msg: any) => {
let dat = msg['content']['data'];
let tmp = JSON.parse(dat);
psp.update(tmp);
};
comm.onClose = (msg: any) => {};
session.kernel.connectToComm(name + '/' + channel).then(comm => {
comm.open('ack');
comm.onMsg = (msg: any) => {
let dat = msg['content']['data'];
let tmp = JSON.parse(dat);
psp.update(tmp);
};
comm.onClose = (msg: any) => {};
});

});
}
Expand Down

0 comments on commit 14f59b2

Please sign in to comment.