Published
Edited
Jul 20, 2022
Insert cell
# Pure data viewer
Insert cell
svg`${rendered.replace(`width="NaN"`, `width=${width}`)}`
Insert cell
pdfu = require('pd-fileutils@0.4.0/dist/pd-fileutils-latest.js').catch(() => window["pdfu"])
Insert cell
supported = ["#N canvas", "#X text", "#X msg", "#X obj"]
Insert cell
parsed = pdfu.parse(patch.split('\n').filter(x => supported.some(s => x.startsWith(s))).join('\n'))
Insert cell
rendered = pdfu.renderSvg(parsed, {svgFile: false})
Insert cell
patch = fetch("https://raw.githubusercontent.com/gusano/pure-data/master/doc/5.reference/threshold%7E-help.pd").then((response) => response.text())
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