Published
Edited
Mar 10, 2021
Insert cell
Insert cell
Insert cell
Insert cell
data = py`import numpy as np
x = np.linspace(0, 2.0 * np.pi, 100)
y = np.sin(x)
{ 'x': x, 'y': y}`
Insert cell
py`
a = [1,2,3]
a
`
Insert cell
Insert cell
{
window.Plotly = await require('//cdn.plot.ly/plotly-latest.min.js');
await data;
py`
from js import Plotly, document
div = document.getElementById('plotly-div')
Plotly.plot(
div,
[{ 'y': y, 'x': x }],
)`;
}
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