How to use the @jupyterlab/notebook.NotebookActions.extendSelectionAbove function in @jupyterlab/notebook

To help you get started, we’ve selected a few @jupyterlab/notebook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab-data-explorer / tests / test-notebook / src / actions.spec.ts View on Github external
it('should select only the first cell if we move from the second to first', () => {
        NotebookActions.extendSelectionBelow(widget);
        const cell = widget.activeCell;
        NotebookActions.extendSelectionAbove(widget);
        expect(widget.isSelected(cell)).to.equal(false);
        expect(widget.activeCellIndex).to.equal(0);
      });
github jupyterlab / jupyterlab-data-explorer / jupyterlab / packages / notebook-extension / src / index.ts View on Github external
execute: args => {
      const current = getCurrent(args);

      if (current) {
        return NotebookActions.extendSelectionAbove(current.content);
      }
    },
    isEnabled
github spyder-ide / spyder-notebook / spyder_notebook / server / src / commands.ts View on Github external
    execute: () => NotebookActions.extendSelectionAbove(nbWidget.content)
  });
github yuvipanda / simplest-notebook / packages / notebook-extension / src / index.ts View on Github external
execute: args => {
      const current = getCurrent(args);

      if (current) {
        return NotebookActions.extendSelectionAbove(current.notebook);
      }
    },
    isEnabled
github jupyterlab / jupyterlab / examples / notebook / src / commands.ts View on Github external
    execute: () => NotebookActions.extendSelectionAbove(nbWidget.content)
  });
github yuvipanda / simplest-notebook / examples / notebook / src / index.ts View on Github external
    execute: () => NotebookActions.extendSelectionAbove(nbWidget.content)
  });
github jupyterlab / jupyterlab / packages / notebook-extension / src / index.ts View on Github external
execute: args => {
      const current = getCurrent(args);

      if (current) {
        return NotebookActions.extendSelectionAbove(current.notebook);
      }
    },
    isEnabled
github jupyterlab / jupyterlab / examples / notebook / src / index.ts View on Github external
    execute: () => NotebookActions.extendSelectionAbove(nbWidget.notebook)
  });
github jupyterlab / jupyterlab-data-explorer / jupyterlab / examples / notebook / src / commands.ts View on Github external
    execute: () => NotebookActions.extendSelectionAbove(nbWidget.content)
  });
github yuvipanda / simplest-notebook / src / notebook / component.tsx View on Github external
      execute: () => NotebookActions.extendSelectionAbove(nbWidget.content)
    });