@jupyterlab/inspector
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -1,4 +0,4 @@ | ||
import { Kernel } from '@jupyterlab/services'; | ||
import { IDisposable } from '@phosphor/disposable'; | ||
import { ISignal } from '@phosphor/signaling'; | ||
import { IClientSession } from '@jupyterlab/apputils'; | ||
import { CodeEditor } from '@jupyterlab/codeeditor'; | ||
@@ -28,2 +28,6 @@ import { RenderMime } from '@jupyterlab/rendermime'; | ||
/** | ||
* The client session used by the inspection handler. | ||
*/ | ||
readonly session: IClientSession; | ||
/** | ||
* The editor widget used by the inspection handler. | ||
@@ -33,6 +37,2 @@ */ | ||
/** | ||
* The kernel used by the inspection handler. | ||
*/ | ||
kernel: Kernel.IKernel; | ||
/** | ||
* Indicates whether the handler makes API inspection requests or stands by. | ||
@@ -67,3 +67,2 @@ * | ||
private _inspected; | ||
private _kernel; | ||
private _pending; | ||
@@ -82,5 +81,5 @@ private _rendermime; | ||
/** | ||
* The kernel for the inspection handler. | ||
* The client session for the inspection handler. | ||
*/ | ||
kernel?: Kernel.IKernel; | ||
session: IClientSession; | ||
/** | ||
@@ -87,0 +86,0 @@ * The mime renderer for the inspection handler. |
@@ -19,7 +19,6 @@ // Copyright (c) Jupyter Development Team. | ||
this._inspected = new signaling_1.Signal(this); | ||
this._kernel = null; | ||
this._pending = 0; | ||
this._rendermime = null; | ||
this._standby = true; | ||
this._kernel = options.kernel || null; | ||
this.session = options.session; | ||
this._rendermime = options.rendermime; | ||
@@ -81,15 +80,2 @@ } | ||
}); | ||
Object.defineProperty(InspectionHandler.prototype, "kernel", { | ||
/** | ||
* The kernel used by the inspection handler. | ||
*/ | ||
get: function () { | ||
return this._kernel; | ||
}, | ||
set: function (value) { | ||
this._kernel = value; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(InspectionHandler.prototype, "standby", { | ||
@@ -133,3 +119,2 @@ /** | ||
this._editor = null; | ||
this._kernel = null; | ||
this._rendermime = null; | ||
@@ -157,3 +142,3 @@ this._disposed.emit(void 0); | ||
// Clear hints if the new text value is empty or kernel is unavailable. | ||
if (!code || !this._kernel) { | ||
if (!code || !this.session.kernel) { | ||
this._inspected.emit(update); | ||
@@ -168,3 +153,3 @@ return; | ||
var pending = ++this._pending; | ||
this._kernel.requestInspect(contents).then(function (msg) { | ||
this.session.kernel.requestInspect(contents).then(function (msg) { | ||
var value = msg.content; | ||
@@ -171,0 +156,0 @@ // If handler has been disposed, bail. |
{ | ||
"name": "@jupyterlab/inspector", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "JupyterLab - Code Inspector", | ||
@@ -16,11 +16,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.1.1", | ||
"@jupyterlab/codeeditor": "^0.1.4", | ||
"@jupyterlab/rendermime": "^0.1.4", | ||
"@jupyterlab/services": "^0.40.1", | ||
"@phosphor/coreutils": "^0.1.5", | ||
"@phosphor/disposable": "^0.1.1", | ||
"@phosphor/messaging": "^0.1.2", | ||
"@phosphor/signaling": "^0.1.2", | ||
"@phosphor/widgets": "^0.3.0" | ||
"@jupyterlab/apputils": "^0.2.0", | ||
"@jupyterlab/codeeditor": "^0.2.0", | ||
"@jupyterlab/rendermime": "^0.2.0", | ||
"@jupyterlab/services": "^0.41.0", | ||
"@phosphor/coreutils": "^1.0.0", | ||
"@phosphor/disposable": "^1.0.0", | ||
"@phosphor/messaging": "^1.0.0", | ||
"@phosphor/signaling": "^1.0.0", | ||
"@phosphor/widgets": "^1.0.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31439
914
+ Added@jupyterlab/application@0.2.0(transitive)
+ Added@jupyterlab/apputils@0.2.0(transitive)
+ Added@jupyterlab/codeeditor@0.2.0(transitive)
+ Added@jupyterlab/codemirror@0.2.0(transitive)
+ Added@jupyterlab/coreutils@0.2.0(transitive)
+ Added@jupyterlab/rendermime@0.2.0(transitive)
+ Added@jupyterlab/services@0.41.0(transitive)
+ Added@phosphor/algorithm@1.2.0(transitive)
+ Added@phosphor/application@1.7.3(transitive)
+ Added@phosphor/collections@1.2.0(transitive)
+ Added@phosphor/commands@1.7.2(transitive)
+ Added@phosphor/coreutils@1.3.1(transitive)
+ Added@phosphor/disposable@1.3.1(transitive)
+ Added@phosphor/domutils@1.1.4(transitive)
+ Added@phosphor/dragdrop@1.4.1(transitive)
+ Added@phosphor/keyboard@1.1.3(transitive)
+ Added@phosphor/messaging@1.3.0(transitive)
+ Added@phosphor/properties@1.1.3(transitive)
+ Added@phosphor/signaling@1.3.1(transitive)
+ Added@phosphor/virtualdom@1.2.0(transitive)
+ Added@phosphor/widgets@1.9.3(transitive)
- Removed@jupyterlab/application@0.1.3(transitive)
- Removed@jupyterlab/apputils@0.1.3(transitive)
- Removed@jupyterlab/codeeditor@0.1.4(transitive)
- Removed@jupyterlab/codemirror@0.1.4(transitive)
- Removed@jupyterlab/coreutils@0.1.3(transitive)
- Removed@jupyterlab/rendermime@0.1.4(transitive)
- Removed@jupyterlab/services@0.40.4(transitive)
- Removed@phosphor/algorithm@0.1.1(transitive)
- Removed@phosphor/application@0.3.1(transitive)
- Removed@phosphor/collections@0.1.1(transitive)
- Removed@phosphor/commands@0.1.5(transitive)
- Removed@phosphor/coreutils@0.1.5(transitive)
- Removed@phosphor/disposable@0.1.1(transitive)
- Removed@phosphor/domutils@0.1.2(transitive)
- Removed@phosphor/dragdrop@0.1.4(transitive)
- Removed@phosphor/keyboard@0.1.1(transitive)
- Removed@phosphor/messaging@0.1.2(transitive)
- Removed@phosphor/properties@0.1.1(transitive)
- Removed@phosphor/signaling@0.1.2(transitive)
- Removed@phosphor/virtualdom@0.1.1(transitive)
- Removed@phosphor/widgets@0.3.1(transitive)
Updated@jupyterlab/apputils@^0.2.0
Updated@jupyterlab/services@^0.41.0
Updated@phosphor/coreutils@^1.0.0
Updated@phosphor/disposable@^1.0.0
Updated@phosphor/messaging@^1.0.0
Updated@phosphor/signaling@^1.0.0
Updated@phosphor/widgets@^1.0.0