jupyter-js-services
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -288,2 +288,30 @@ import { IDisposable } from 'phosphor-disposable'; | ||
/** | ||
* Contents of an `history_request` message. | ||
* | ||
* See [Messaging in Jupyter](http://jupyter-client.readthedocs.org/en/latest/messaging.html#history). | ||
* | ||
* **See also:** [[IHistoryReply]], [[[IKernel.history]]] | ||
*/ | ||
export interface IHistoryRequest { | ||
output: boolean; | ||
raw: boolean; | ||
hist_access_type: string; | ||
session: number; | ||
start: number; | ||
stop: number; | ||
n: number; | ||
pattern: string; | ||
unique: boolean; | ||
} | ||
/** | ||
* Contents of an `history_reply` message. | ||
* | ||
* See [Messaging in Jupyter](http://jupyter-client.readthedocs.org/en/latest/messaging.html#history). | ||
* | ||
* **See also:** [[IHistoryRequest]], [[IKernel.history]] | ||
*/ | ||
export interface IHistoryReply { | ||
history: any[]; | ||
} | ||
/** | ||
* Contents of an `is_complete_request` message. | ||
@@ -569,2 +597,12 @@ * | ||
/** | ||
* Send a `history_request` message. | ||
* | ||
* #### Notes | ||
* See [Messaging in Jupyter](http://jupyter-client.readthedocs.org/en/latest/messaging.html#history). | ||
* | ||
* Fulfills with the `history_reply` content when the shell reply is | ||
* received and validated. | ||
*/ | ||
history(contents: IHistoryRequest): Promise<IHistoryReply>; | ||
/** | ||
* Send an `execute_request` message. | ||
@@ -571,0 +609,0 @@ * |
@@ -605,2 +605,21 @@ // Copyright (c) Jupyter Development Team. | ||
/** | ||
* Send a `history_request` message. | ||
* | ||
* #### Notes | ||
* See [Messaging in Jupyter](http://jupyter-client.readthedocs.org/en/latest/messaging.html#history). | ||
* | ||
* Fulfills with the `history_reply` content when the shell reply is | ||
* received and validated. | ||
*/ | ||
Kernel.prototype.history = function (contents) { | ||
var options = { | ||
msgType: 'history_request', | ||
channel: 'shell', | ||
username: this._username, | ||
session: this._clientId | ||
}; | ||
var msg = createKernelMessage(options, contents); | ||
return Private.sendKernelMessage(this, msg); | ||
}; | ||
/** | ||
* Send an `execute_request` message. | ||
@@ -607,0 +626,0 @@ * |
{ | ||
"name": "jupyter-js-services", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "Client APIs for the Jupyter services REST APIs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
175733
4960