How to use the @jupyterlab/outputarea.OutputAreaModel.ContentFactory function in @jupyterlab/outputarea

To help you get started, we’ve selected a few @jupyterlab/outputarea 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 yuvipanda / simplest-notebook / test / src / outputarea / model.spec.ts View on Github external
it('should accept options', () => {
        let contentFactory = new OutputAreaModel.ContentFactory();
        model = new OutputAreaModel({
          values: DEFAULT_OUTPUTS,
          contentFactory,
          trusted: true
        });
        expect(model.contentFactory).to.be(contentFactory);
        expect(model.trusted).to.be(true);
      });
github yuvipanda / simplest-notebook / test / src / outputarea / model.spec.ts View on Github external
it('should create an output model', () => {
        let factory = new OutputAreaModel.ContentFactory();
        let model = factory.createOutputModel({ value: DEFAULT_OUTPUTS[0] });
        expect(model).to.be.an(OutputModel);
      });
github jupyterlab / jupyterlab / test / src / outputarea / model.spec.ts View on Github external
it('should create an output model', () => {
        let factory = new OutputAreaModel.ContentFactory();
        let model = factory.createOutputModel({ value: DEFAULT_OUTPUTS[0] });
        expect(model).to.be.an(OutputModel);
      });
github jupyterlab / jupyterlab-data-explorer / tests / test-outputarea / src / model.spec.ts View on Github external
it('should create an output model', () => {
        const factory = new OutputAreaModel.ContentFactory();
        const model = factory.createOutputModel({
          value: NBTestUtils.DEFAULT_OUTPUTS[0]
        });
        expect(model).to.be.an.instanceof(OutputModel);
      });
    });
github jupyterlab / jupyterlab-data-explorer / tests / test-outputarea / src / model.spec.ts View on Github external
it('should accept options', () => {
        const contentFactory = new OutputAreaModel.ContentFactory();
        model = new OutputAreaModel({
          values: NBTestUtils.DEFAULT_OUTPUTS,
          contentFactory,
          trusted: true
        });
        expect(model.contentFactory).to.equal(contentFactory);
        expect(model.trusted).to.equal(true);
      });
    });
github jupyterlab / jupyterlab / test / src / outputarea / model.spec.ts View on Github external
it('should accept options', () => {
        let contentFactory = new OutputAreaModel.ContentFactory();
        model = new OutputAreaModel({
          values: DEFAULT_OUTPUTS,
          contentFactory,
          trusted: true
        });
        expect(model.contentFactory).to.be(contentFactory);
        expect(model.trusted).to.be(true);
      });