How to use the @observablehq/runtime.Inspector function in @observablehq/runtime

To help you get started, we’ve selected a few @observablehq/runtime 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 severo / observable-to-standalone / bundle / joyplot / src / render.js View on Github external
runtime.module(notebook, name => {
    switch (name) {
      case 'chart':
        // render 'chart' notebook cell into <div id="joyplot"></div>
        return new Inspector(document.querySelector('#joyplot'));
        break;
    }
  });
}
github severo / observable-to-standalone / bundle / step_by_step / joyplot / step2 / src / main.js View on Github external
const main = runtime.module(notebook, name =&gt; {
  switch (name) {
    case 'chart':
      // render 'chart' notebook cell into <div id="joyplot"></div>
      return new Inspector(document.querySelector('#joyplot'));
      break;
  }
});

@observablehq/runtime

[![Node CI](https://github.com/observablehq/runtime/workflows/Node%20CI/badge.svg)](https://github.com/observablehq/runtime/actions?workflow=Node+CI) [![Greenkeeper badge](https://badges.greenkeeper.io/observablehq/runtime.svg)](https://greenkeeper.io/)

ISC
Latest version published 4 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages