How to use the @jupyterlab/cells.CodeCellModel.ContentFactory function in @jupyterlab/cells

To help you get started, we’ve selected a few @jupyterlab/cells 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 / test / src / console / widget.spec.ts View on Github external
it('should accept a codeCellContentFactory', () => {
          let codeCellContentFactory = new CodeCellModel.ContentFactory();
          let factory = new CodeConsole.ModelFactory({ codeCellContentFactory });
          expect(factory.codeCellContentFactory).to.be(codeCellContentFactory);
        });
github jupyterlab / jupyterlab-data-explorer / tests / test-notebook / src / model.spec.ts View on Github external
it('should be settable in the constructor', () => {
          const codeCellContentFactory = new CodeCellModel.ContentFactory();
          factory = new NotebookModel.ContentFactory({
            codeCellContentFactory
          });
          expect(factory.codeCellContentFactory).to.equal(
            codeCellContentFactory
          );
        });
      });
github jupyterlab / jupyterlab / tests / test-notebook / src / model.spec.ts View on Github external
it('should be settable in the constructor', () => {
          const codeCellContentFactory = new CodeCellModel.ContentFactory();
          factory = new NotebookModel.ContentFactory({
            codeCellContentFactory
          });
          expect(factory.codeCellContentFactory).to.equal(
            codeCellContentFactory
          );
        });
      });
github jupyterlab / jupyterlab / tests / test-cells / src / model.spec.ts View on Github external
it('should create a new output area factory', () => {
          const factory = new CodeCellModel.ContentFactory();
          expect(factory).to.be.an.instanceof(CodeCellModel.ContentFactory);
        });
      });
github jupyterlab / jupyterlab / tests / test-console / src / widget.spec.ts View on Github external
it('should accept a codeCellContentFactory', () => {
          const codeCellContentFactory = new CodeCellModel.ContentFactory();
          const factory = new CodeConsole.ModelFactory({
            codeCellContentFactory
          });
          expect(factory.codeCellContentFactory).to.equal(
            codeCellContentFactory
          );
        });
      });
github jupyterlab / jupyterlab / tests / test-cells / src / model.spec.ts View on Github external
it('should create an output area model', () => {
          const factory = new CodeCellModel.ContentFactory();
          expect(
            factory.createOutputArea({ trusted: true })
          ).to.be.an.instanceof(OutputAreaModel);
        });
      });
github jupyterlab / jupyterlab-data-explorer / tests / test-cells / src / model.spec.ts View on Github external
it('should create an output area model', () => {
          const factory = new CodeCellModel.ContentFactory();
          expect(
            factory.createOutputArea({ trusted: true })
          ).to.be.an.instanceof(OutputAreaModel);
        });
      });
github jupyterlab / jupyterlab-data-explorer / tests / test-cells / src / model.spec.ts View on Github external
it('should create a new output area factory', () => {
          const factory = new CodeCellModel.ContentFactory();
          expect(factory).to.be.an.instanceof(CodeCellModel.ContentFactory);
        });
      });
github jupyterlab / jupyterlab / tests / test-console / src / widget.spec.ts View on Github external
it('should accept a codeCellContentFactory', () => {
          const codeCellContentFactory = new CodeCellModel.ContentFactory();
          const factory = new CodeConsole.ModelFactory({
            codeCellContentFactory
          });
          expect(factory.codeCellContentFactory).to.equal(
            codeCellContentFactory
          );
        });
      });
github jupyterlab / jupyterlab / tests / test-notebook / src / modelfactory.spec.ts View on Github external
it('should accept a code cell content factory', () => {
        const codeCellContentFactory = new CodeCellModel.ContentFactory();
        const factory = new NotebookModelFactory({ codeCellContentFactory });
        expect(factory.contentFactory.codeCellContentFactory).to.equal(
          codeCellContentFactory
        );
      });