How to use the @jupyterlab/notebook.NotebookActions.selectBelow 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 preserve the mode', () => {
        widget.activeCellIndex = 2;
        NotebookActions.selectBelow(widget);
        expect(widget.mode).to.equal('command');
        widget.mode = 'edit';
        NotebookActions.selectBelow(widget);
        expect(widget.mode).to.equal('edit');
      });
github jupyterlab / jupyterlab / tests / test-notebook / src / actions.spec.ts View on Github external
it('should select the cell below the active cell', () => {
        NotebookActions.selectBelow(widget);
        expect(widget.activeCellIndex).to.equal(1);
      });
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.selectBelow(current.content);
      }
    },
    isEnabled
github yuvipanda / simplest-notebook / examples / notebook / src / index.ts View on Github external
    execute: () => NotebookActions.selectBelow(nbWidget.content)
  });
github spyder-ide / spyder-notebook / spyder_notebook / server / src / commands.ts View on Github external
    execute: () => NotebookActions.selectBelow(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.selectBelow(current.notebook);
      }
    },
    isEnabled
github jupyterlab / jupyterlab / packages / notebook-extension / src / index.ts View on Github external
execute: args => {
      const current = getCurrent(args);

      if (current) {
        return NotebookActions.selectBelow(current.notebook);
      }
    },
    isEnabled
github jwkvam / jupyterlab-vim / src / index.ts View on Github external
execute: args => {
                const current = getCurrent(args);

                if (current) {
                    const { content } = current;
                    if (content.activeCell !== null &&
                        content.activeCell.model.type === 'markdown') {
                        (current.content.activeCell as MarkdownCell).rendered = true;
                    }
                    return NotebookActions.selectBelow(current.content);
                }
            },
            isEnabled
github jupyterlab / jupyterlab / examples / notebook / src / index.ts View on Github external
    execute: () => NotebookActions.selectBelow(nbWidget.notebook)
  });