How to use the @jupyterlab/csvviewer.CSVViewer function in @jupyterlab/csvviewer

To help you get started, we’ve selected a few @jupyterlab/csvviewer 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-csvviewer / src / widget.spec.ts View on Github external
it('should be safe to call multiple times', () => {
        const widget = new CSVViewer({ context });
        expect(widget.isDisposed).to.equal(false);
        widget.dispose();
        widget.dispose();
        expect(widget.isDisposed).to.equal(true);
      });
    });
github jupyterlab / jupyterlab-data-explorer / tests / test-csvviewer / src / widget.spec.ts View on Github external
it('should be the context for the file', () => {
        const widget = new CSVViewer({ context });
        expect(widget.context).to.equal(context);
      });
    });
github jupyterlab / jupyterlab / tests / test-csvviewer / src / widget.spec.ts View on Github external
it('should be the context for the file', () => {
        const widget = new CSVViewer({ context });
        expect(widget.context).to.equal(context);
      });
    });
github jupyterlab / jupyterlab / tests / test-csvviewer / src / widget.spec.ts View on Github external
it('should instantiate a `CSVViewer`', () => {
        const widget = new CSVViewer({ context });
        expect(widget).to.be.an.instanceof(CSVViewer);
        widget.dispose();
      });
    });
github jupyterlab / jupyterlab-data-explorer / tests / test-csvviewer / src / widget.spec.ts View on Github external
it('should dispose of the resources held by the widget', () => {
        const widget = new CSVViewer({ context });
        expect(widget.isDisposed).to.equal(false);
        widget.dispose();
        expect(widget.isDisposed).to.equal(true);
      });
github jupyterlab / jupyterlab-data-explorer / tests / test-csvviewer / src / widget.spec.ts View on Github external
it('should instantiate a `CSVViewer`', () => {
        const widget = new CSVViewer({ context });
        expect(widget).to.be.an.instanceof(CSVViewer);
        widget.dispose();
      });
    });