Published
Edited
Jan 10, 2019
1 fork
Insert cell
Insert cell
simpleStatistics = require('simple-statistics')
Insert cell
simpleStatistics.standardDeviation([1, 2, 3])
Insert cell
Insert cell
moment = require('moment')
Insert cell
moment('January 2, 2018').subtract(1, 'year').year()
Insert cell
Insert cell
moment2 = require('moment@2')
Insert cell
Insert cell
Chart = require('chart.js/dist/Chart.min.js')
Insert cell
Insert cell
ganja = require('https://cdn.rawgit.com/enkimute/ganja.js/master/ganja.js')
Insert cell
Insert cell
Insert cell
Insert cell
{
// using await to resolve the Promise returned by require
let _ = await require('lodash');
// using the module
return _.filter([1, 2, 0]);
}
Insert cell
Insert cell
notValid = require('not-a-real-npm-module')
Insert cell
Insert cell
Insert cell
d3 = require('d3')
Insert cell
Insert cell
Insert cell
scale = import('d3-scale')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more