How to use the @jupyterlab/cells.CodeCellModel.defaultContentFactory 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 / tests / test-console / src / widget.spec.ts View on Github external
it('should be the code cell content factory used by the factory', () => {
          const factory = new CodeConsole.ModelFactory({});
          expect(factory.codeCellContentFactory).to.equal(
            CodeCellModel.defaultContentFactory
          );
        });
      });
github jupyterlab / jupyterlab / tests / test-console / src / widget.spec.ts View on Github external
it('should be the code cell content factory used by the factory', () => {
          const factory = new CodeConsole.ModelFactory({});
          expect(factory.codeCellContentFactory).to.equal(
            CodeCellModel.defaultContentFactory
          );
        });
      });
github jupyterlab / jupyterlab / test / src / cells / model.spec.ts View on Github external
it('should be an ContentFactory', () => {
        expect(CodeCellModel.defaultContentFactory).to.be.a(CodeCellModel.ContentFactory);
      });
github jupyterlab / jupyterlab-data-explorer / tests / test-cells / src / model.spec.ts View on Github external
it('should be an ContentFactory', () => {
        expect(CodeCellModel.defaultContentFactory).to.be.an.instanceof(
          CodeCellModel.ContentFactory
        );
      });
    });
github jupyterlab / jupyterlab / tests / test-notebook / src / model.spec.ts View on Github external
it('should be a code cell content factory', () => {
          expect(factory.codeCellContentFactory).to.equal(
            CodeCellModel.defaultContentFactory
          );
        });
github jupyterlab / jupyterlab / tests / test-cells / src / model.spec.ts View on Github external
it('should be an ContentFactory', () => {
        expect(CodeCellModel.defaultContentFactory).to.be.an.instanceof(
          CodeCellModel.ContentFactory
        );
      });
    });
github jupyterlab / jupyterlab / packages / notebook / src / model.ts View on Github external
constructor(options: ContentFactory.IOptions) {
      this.codeCellContentFactory =
        options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
      this.modelDB = options.modelDB;
    }
github jupyterlab / jupyterlab-data-explorer / jupyterlab / packages / console / src / widget.ts View on Github external
constructor(options: IModelFactoryOptions = {}) {
      this.codeCellContentFactory =
        options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
    }
github jupyterlab / jupyterlab-data-explorer / packages / notebook / src / model.ts View on Github external
constructor(options: ContentFactory.IOptions) {
      this.codeCellContentFactory =
        options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
      this.modelDB = options.modelDB;
    }
github jupyterlab / jupyterlab / packages / console / src / widget.ts View on Github external
constructor(options: IModelFactoryOptions = {}) {
      this.codeCellContentFactory =
        options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
    }