How to use the @jupyterlab/markdownviewer.MarkdownViewer function in @jupyterlab/markdownviewer

To help you get started, we’ve selected a few @jupyterlab/markdownviewer 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 / markdownviewer / widget.spec.ts View on Github external
it('should require a context parameter', () => {
        let widget = new MarkdownViewer(context, RENDERMIME);
        expect(widget).to.be.a(MarkdownViewer);
      });
github jupyterlab / jupyterlab / test / src / markdownviewer / widget.spec.ts View on Github external
it('should be fulfilled when the widget is done rendering', () => {
        let widget = new MarkdownViewer(context, RENDERMIME);
        context.save();
        return widget.ready.then(() => {
          let layout = widget.layout as PanelLayout;
          expect(layout.widgets.length).to.be(2);
        });
      });

@jupyterlab/markdownviewer

JupyterLab - Markdown viewer Widget

BSD-3-Clause
Latest version published 16 days ago

Package Health Score

95 / 100
Full package analysis