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

jupyter-js-notebook

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jupyter-js-notebook - npm Package Compare versions

Comparing version 0.5.16 to 0.5.17

3

lib/cells/widget.js

@@ -21,2 +21,3 @@ // Copyright (c) Jupyter Development Team.

_super.call(this);
this.addClass('jp-Cell');
// we make the cell focusable by setting the tabIndex

@@ -39,3 +40,2 @@ this.node.tabIndex = -1;

_super.call(this);
this.addClass('jp-Cell');
this.addClass('jp-CodeCell');

@@ -99,3 +99,2 @@ this._model = model;

_super.call(this);
this.addClass('jp-Cell');
this.addClass('jp-MarkdownCell');

@@ -102,0 +101,0 @@ this._model = model;

@@ -17,3 +17,3 @@ // Copyright (c) Jupyter Development Team.

*/
var FILE_BROWSER_CLASS = 'jp-CodeMirrorWidget';
var CODEMIRROR_CLASS = 'jp-CodeMirror';
/**

@@ -41,3 +41,3 @@ * The class name added to a fixed height editor.

this._dirty = false;
this.addClass(FILE_BROWSER_CLASS);
this.addClass(CODEMIRROR_CLASS);
this._editor = CodeMirror(this.node);

@@ -44,0 +44,0 @@ this.model = model;

@@ -22,3 +22,3 @@ // Copyright (c) Jupyter Development Team.

_super.call(this);
this.addClass('jp-InputAreaWidget');
this.addClass('jp-InputArea');
this._model = model;

@@ -25,0 +25,0 @@ this.layout = new phosphor_panel_1.PanelLayout();

@@ -15,2 +15,14 @@ // Copyright (c) Jupyter Development Team.

/**
* The class name added to notebook widgets.
*/
var NB_CLASS = 'jp-Notebook';
/**
* The class name added to notebook widget cells.
*/
var NB_CELL_CLASS = 'jp-Notebook-cell';
/**
* The class name added to notebook selected cells.
*/
var NB_SELECTED_CLASS = 'jp-mod-selected';
/**
* A widget for a notebook.

@@ -26,3 +38,3 @@ */

_super.call(this);
this.addClass('jp-Notebook');
this.addClass(NB_CLASS);
this._model = model;

@@ -34,7 +46,5 @@ this._listdispose = follow(model.cells, this, function (c) {

w = new cells_1.CodeCellWidget(c);
w.addClass('jp-nbCell');
break;
case cells_1.CellType.Markdown:
w = new cells_1.MarkdownCellWidget(c);
w.addClass('jp-nbCell');
break;

@@ -46,2 +56,3 @@ default:

}
w.addClass(NB_CELL_CLASS);
return w;

@@ -79,3 +90,3 @@ });

while (node && node !== this.node) {
if (node.classList.contains('jp-nbCell')) {
if (node.classList.contains(NB_CELL_CLASS)) {
for (var i = 0; i < this.childCount(); i++) {

@@ -103,7 +114,7 @@ if (this.childAt(i).node === node) {

if (oldIndex !== void 0) {
this.childAt(oldIndex).removeClass('jp-selected-cell');
this.childAt(oldIndex).removeClass(NB_SELECTED_CLASS);
}
if (newIndex !== void 0) {
var newCell = this.childAt(newIndex);
newCell.addClass('jp-selected-cell');
newCell.addClass(NB_SELECTED_CLASS);
scrollIfNeeded(this.node, newCell.node);

@@ -110,0 +121,0 @@ }

{
"name": "jupyter-js-notebook",
"version": "0.5.16",
"version": "0.5.17",
"description": "Notebook widget for Jupyter",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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