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

The **Observable Runtime** implements reactivity in both [Observable Framework](https://observablehq.com/framework/) and [Observable notebooks](https://observablehq.com/documentation/notebooks/).

ISC
Latest version published 16 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages