How to use the rx-jupyter.kernels.list function in rx-jupyter

To help you get started, we’ve selected a few rx-jupyter 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 nteract / nteract / packages / host-cache / src / host-storage.ts View on Github external
async checkUp(host: HostRecord): Promise {
    if (host.type !== UP) {
      return false;
    }

    return kernels
      .list(host.config)
      .pipe(
        map(xhr => {
          console.log(xhr);
          return true;
        }),
        catchError(err => {
          console.error("error listing kernels on server", err);
          return of(false);
        })
      )
      .toPromise();
  }