How to use the @jupyterlab/notebook.NotebookActions.selectAbove 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 / tests / test-notebook / src / actions.spec.ts View on Github external
it('should not skip collapsed cells and in command mode', () => {
        widget.activeCellIndex = 3;
        widget.mode = 'command';
        widget.widgets[1].inputHidden = true;
        widget.widgets[2].inputHidden = true;
        widget.widgets[3].inputHidden = false;
        NotebookActions.selectAbove(widget);
        expect(widget.activeCellIndex).to.equal(2);
      });
    });
github yuvipanda / simplest-notebook / examples / notebook / src / index.ts View on Github external
    execute: () => NotebookActions.selectAbove(nbWidget.content)
  });
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.selectAbove(current.content);
                }
            },
            isEnabled
github jupyterlab / jupyterlab / packages / notebook-extension / src / index.ts View on Github external
execute: args => {
      const current = getCurrent(args);

      if (current) {
        return NotebookActions.selectAbove(current.notebook);
      }
    },
    isEnabled
github spyder-ide / spyder-notebook / spyder_notebook / server / src / commands.ts View on Github external
    execute: () => NotebookActions.selectAbove(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.selectAbove(current.notebook);
      }
    },
    isEnabled
github jupyterlab / jupyterlab / examples / notebook / src / index.ts View on Github external
    execute: () => NotebookActions.selectAbove(nbWidget.notebook)
  });
github jupyterlab / jupyterlab / examples / notebook / src / commands.ts View on Github external
    execute: () => NotebookActions.selectAbove(nbWidget.content)
  });
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.selectAbove(current.content);
      }
    },
    isEnabled