Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jupyterlab/notebook

Package Overview
Dependencies
Maintainers
7
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/notebook - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

README.md

3

lib/actions.js

@@ -11,3 +11,3 @@ "use strict";

// The message to display to the user when prompting to trust the notebook.
var TRUST_MESSAGE = virtualdom_1.h.p('A trusted Jupyter notebook may execute hidden malicious code when you ', 'open it.', virtualdom_1.h.br(), 'Selecting trust will re-render this notebook in a trusted state.', virtualdom_1.h.br(), 'For more information, see the', virtualdom_1.h.a({ href: 'http://ipython.org/ipython-doc/2/notebook/security.html' }, 'Jupyter security documentation'));
var TRUST_MESSAGE = virtualdom_1.h.p('A trusted Jupyter notebook may execute hidden malicious code when you ', 'open it.', virtualdom_1.h.br(), 'Selecting trust will re-render this notebook in a trusted state.', virtualdom_1.h.br(), 'For more information, see the', virtualdom_1.h.a({ href: 'https://jupyter-notebook.readthedocs.io/en/stable/security.html' }, 'Jupyter security documentation'));
/**

@@ -1265,1 +1265,2 @@ * The mimetype used for Jupyter cell data.

})(Private || (Private = {}));
//# sourceMappingURL=actions.js.map

@@ -497,1 +497,2 @@ "use strict";

exports.CellList = CellList;
//# sourceMappingURL=celllist.js.map

@@ -55,4 +55,3 @@ "use strict";

*/
exports.ICellTools = new coreutils_1.Token('jupyter.services.cell-tools');
;
exports.ICellTools = new coreutils_1.Token('@jupyterlab/notebook:ICellTools');
/**

@@ -552,1 +551,2 @@ * A widget that provides cell metadata tools.

})(Private || (Private = {}));
//# sourceMappingURL=celltools.js.map

@@ -315,1 +315,2 @@ "use strict";

}
//# sourceMappingURL=default-toolbar.js.map

@@ -18,1 +18,2 @@ "use strict";

__export(require("./widgetfactory"));
//# sourceMappingURL=index.js.map

@@ -122,3 +122,3 @@ import { DocumentModel, DocumentRegistry } from '@jupyterlab/docregistry';

/**
* An optional modelDB for storing notebook data.
* A modelDB for storing notebook data.
*/

@@ -135,2 +135,5 @@ modelDB?: IModelDB;

readonly codeCellContentFactory: CodeCellModel.IContentFactory;
/**
* The IModelDB in which to put data for the notebook model.
*/
modelDB: IModelDB;

@@ -164,2 +167,6 @@ /**

createRawCell(options: CellModel.IOptions): IRawCellModel;
/**
* Clone the content factory with a new IModelDB.
*/
clone(modelDB: IModelDB): IContentFactory;
}

@@ -178,4 +185,7 @@ /**

readonly codeCellContentFactory: CodeCellModel.IContentFactory;
modelDB: IModelDB;
/**
* The IModelDB in which to put the notebook data.
*/
readonly modelDB: IModelDB | undefined;
/**
* Create a new code cell.

@@ -209,3 +219,6 @@ *

createRawCell(options: CellModel.IOptions): IRawCellModel;
private _modelDB;
/**
* Clone the content factory with a new IModelDB.
*/
clone(modelDB: IModelDB): ContentFactory;
}

@@ -212,0 +225,0 @@ /**

@@ -34,5 +34,3 @@ "use strict";

var factory = (options.contentFactory || NotebookModel.defaultContentFactory);
var cellDB = _this.modelDB.view('cells');
factory.modelDB = cellDB;
_this.contentFactory = factory;
_this.contentFactory = factory.clone(_this.modelDB.view('cells'));
_this._cells = new celllist_1.CellList(_this.modelDB, _this.contentFactory);

@@ -289,14 +287,4 @@ // Add an initial code cell by default.

cells_1.CodeCellModel.defaultContentFactory);
this._modelDB = options.modelDB || null;
this.modelDB = options.modelDB;
}
Object.defineProperty(ContentFactory.prototype, "modelDB", {
get: function () {
return this._modelDB;
},
set: function (db) {
this._modelDB = db;
},
enumerable: true,
configurable: true
});
/**

@@ -316,7 +304,7 @@ * Create a new code cell.

}
if (this._modelDB) {
if (this.modelDB) {
if (!options.id) {
options.id = coreutils_1.uuid();
}
options.modelDB = this._modelDB.view(options.id);
options.modelDB = this.modelDB.view(options.id);
}

@@ -334,7 +322,7 @@ return new cells_1.CodeCellModel(options);

ContentFactory.prototype.createMarkdownCell = function (options) {
if (this._modelDB) {
if (this.modelDB) {
if (!options.id) {
options.id = coreutils_1.uuid();
}
options.modelDB = this._modelDB.view(options.id);
options.modelDB = this.modelDB.view(options.id);
}

@@ -352,10 +340,19 @@ return new cells_1.MarkdownCellModel(options);

ContentFactory.prototype.createRawCell = function (options) {
if (this._modelDB) {
if (this.modelDB) {
if (!options.id) {
options.id = coreutils_1.uuid();
}
options.modelDB = this._modelDB.view(options.id);
options.modelDB = this.modelDB.view(options.id);
}
return new cells_1.RawCellModel(options);
};
/**
* Clone the content factory with a new IModelDB.
*/
ContentFactory.prototype.clone = function (modelDB) {
return new ContentFactory({
modelDB: modelDB,
codeCellContentFactory: this.codeCellContentFactory
});
};
return ContentFactory;

@@ -370,1 +367,2 @@ }());

exports.NotebookModel = NotebookModel;
//# sourceMappingURL=model.js.map

@@ -85,1 +85,2 @@ "use strict";

exports.NotebookModelFactory = NotebookModelFactory;
//# sourceMappingURL=modelfactory.js.map

@@ -367,5 +367,6 @@ "use strict";

*/
NotebookPanel.IContentFactory = new coreutils_1.Token('jupyter.services.notebook.content-factory');
NotebookPanel.IContentFactory = new coreutils_1.Token('@jupyterlab/notebook:IContentFactory');
/* tslint:enable */
})(NotebookPanel = exports.NotebookPanel || (exports.NotebookPanel = {}));
exports.NotebookPanel = NotebookPanel;
//# sourceMappingURL=panel.js.map

@@ -22,3 +22,3 @@ "use strict";

*/
exports.INotebookTracker = new coreutils_1.Token('jupyter.services.notebooks');
exports.INotebookTracker = new coreutils_1.Token('@jupyterlab/notebook:INotebookTracker');
/* tslint:enable */

@@ -125,1 +125,2 @@ var NotebookTracker = (function (_super) {

exports.NotebookTracker = NotebookTracker;
//# sourceMappingURL=tracker.js.map

@@ -1427,1 +1427,2 @@ "use strict";

})(Private || (Private = {}));
//# sourceMappingURL=widget.js.map

@@ -56,1 +56,2 @@ "use strict";

exports.NotebookWidgetFactory = NotebookWidgetFactory;
//# sourceMappingURL=widgetfactory.js.map
{
"name": "@jupyterlab/notebook",
"version": "0.10.0",
"version": "0.11.0",
"description": "JupyterLab - Notebook",

@@ -16,9 +16,9 @@ "main": "lib/index.js",

"dependencies": {
"@jupyterlab/apputils": "^0.10.0",
"@jupyterlab/cells": "^0.10.0",
"@jupyterlab/codeeditor": "^0.10.0",
"@jupyterlab/coreutils": "^0.10.0",
"@jupyterlab/docregistry": "^0.10.0",
"@jupyterlab/rendermime": "^0.10.0",
"@jupyterlab/services": "^0.49.0",
"@jupyterlab/apputils": "^0.11.0",
"@jupyterlab/cells": "^0.11.0",
"@jupyterlab/codeeditor": "^0.11.0",
"@jupyterlab/coreutils": "^0.11.0",
"@jupyterlab/docregistry": "^0.11.0",
"@jupyterlab/rendermime": "^0.11.0",
"@jupyterlab/services": "^0.50.0",
"@phosphor/algorithm": "^1.1.1",

@@ -25,0 +25,0 @@ "@phosphor/coreutils": "^1.2.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc