How to use the @jupyterlab/rendermime.OutputModel.getMetadata function in @jupyterlab/rendermime

To help you get started, we’ve selected a few @jupyterlab/rendermime 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-rendermime / src / outputmodel.spec.ts View on Github external
it('should handle output with no metadata field', () => {
        const metadata = OutputModel.getMetadata(DEFAULT_STREAM);
        expect(Object.keys(metadata).length).to.equal(0);
      });
    });
github jupyterlab / jupyterlab / tests / test-rendermime / src / outputmodel.spec.ts View on Github external
it('should get the metadata from the bundle', () => {
        const metadata = OutputModel.getMetadata(DEFAULT_EXECUTE);
        expect(metadata['foo']).to.equal(1);
        expect(metadata['bar']).to.equal('baz');
      });