How to use the @jupyterlab/console.CodeConsole.ModelFactory function in @jupyterlab/console

To help you get started, we’ve selected a few @jupyterlab/console 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 create a raw cell model', () => {
          let factory = new CodeConsole.ModelFactory({});
          expect(factory.createRawCell({})).to.be.a(RawCellModel);
        });
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 / console / widget.spec.ts View on Github external
it('should create a code cell', () => {
          let factory = new CodeConsole.ModelFactory({});
          expect(factory.createCodeCell({})).to.be.a(CodeCellModel);
        });
github jupyterlab / jupyterlab / tests / test-console / src / widget.spec.ts View on Github external
it('should create a raw cell model', () => {
          const factory = new CodeConsole.ModelFactory({});
          expect(factory.createRawCell({})).to.be.an.instanceof(RawCellModel);
        });
      });
github jupyterlab / jupyterlab-data-explorer / tests / test-console / src / widget.spec.ts View on Github external
it('should create a raw cell model', () => {
          const factory = new CodeConsole.ModelFactory({});
          expect(factory.createRawCell({})).to.be.an.instanceof(RawCellModel);
        });
      });
github jupyterlab / jupyterlab / test / src / console / widget.spec.ts View on Github external
it('should be the code cell content factory used by the factory', () => {
          let factory = new CodeConsole.ModelFactory({});
          expect(factory.codeCellContentFactory).to.be(CodeCellModel.defaultContentFactory);
        });
github jupyterlab / jupyterlab / tests / test-console / src / widget.spec.ts View on Github external
it('should create a code cell', () => {
          const factory = new CodeConsole.ModelFactory({});
          expect(factory.createCodeCell({})).to.be.an.instanceof(CodeCellModel);
        });
      });
github jupyterlab / jupyterlab / tests / test-console / src / widget.spec.ts View on Github external
it('should create a new model factory', () => {
          const factory = new CodeConsole.ModelFactory({});
          expect(factory).to.be.an.instanceof(CodeConsole.ModelFactory);
        });
github jupyterlab / jupyterlab-data-explorer / 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-data-explorer / tests / test-console / src / widget.spec.ts View on Github external
it('should create a new model factory', () => {
          const factory = new CodeConsole.ModelFactory({});
          expect(factory).to.be.an.instanceof(CodeConsole.ModelFactory);
        });