How to use the @jupyterlab/documentsearch.NotebookSearchProvider function in @jupyterlab/documentsearch

To help you get started, we’ve selected a few @jupyterlab/documentsearch 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 spyder-ide / spyder-notebook / spyder_notebook / server / src / commands.ts View on Github external
execute: () => {
      if (searchInstance) {
        searchInstance.focusInput();
        return;
      }
      const provider = new NotebookSearchProvider();
      searchInstance = new SearchInstance(nbWidget, provider);
      searchInstance.disposed.connect(() => {
        searchInstance = undefined;
        // find next and previous are now not enabled
        commands.notifyCommandChanged();
      });
      // find next and previous are now enabled
      commands.notifyCommandChanged();
      searchInstance.focusInput();
    }
  });
github jupyterlab / jupyterlab / examples / notebook / src / commands.ts View on Github external
execute: () => {
      if (searchInstance) {
        searchInstance.focusInput();
        return;
      }
      const provider = new NotebookSearchProvider();
      searchInstance = new SearchInstance(nbWidget, provider);
      searchInstance.disposed.connect(() => {
        searchInstance = undefined;
        // find next and previous are now not enabled
        commands.notifyCommandChanged();
      });
      // find next and previous are now enabled
      commands.notifyCommandChanged();
      searchInstance.focusInput();
    }
  });

@jupyterlab/documentsearch

JupyterLab - Document Search

BSD-3-Clause
Latest version published 14 days ago

Package Health Score

89 / 100
Full package analysis