Published
Edited
Feb 20, 2021
1 star
Insert cell
Insert cell
axios = require('https://unpkg.com/axios/dist/axios.min.js')
Insert cell
ROOT_URL = 'https://raw.githubusercontent.com/cornhundred/deck.gl-data/master/website/image-tiles/moon.image'
Insert cell
jpeg_data = axios({
method: 'get',
url: ROOT_URL + '/moon.image_files/10/0_0.jpeg'
})
.then(function (response) {
return Buffer.Buffer.from(response.data, 'binary').toString('base64')
});
Insert cell
Buffer = require('https://bundle.run/buffer@6.0.3')
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