Public
Edited
Dec 20, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
event_time = `https://calendar.app.google/92TtNzGG9g39HAuo7`
Insert cell
event_date = `jan 8 2025`
Insert cell
event_frequency = `monthly`
Insert cell
atendee_list = ["mark_chatkhan", "mark rev", "zoom_google_meet"]
Insert cell
talk_list = ["webgpu visualization with three.js and plotly"]
Insert cell
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.lineY(
aapl,
Plot.windowY({ x: "Date", y: "Close", k: 10, reduce: "mean" })
)
]
})
Insert cell

// Initialize Supabase
const supabase = new Client('supabase_url', 'public_anon_key');

// Function to increment a poll option
async function incrementOption(option) {
await supabase
.from('poll')
.update({ votes: supabase.raw('votes + 1') })
.eq('option', option);
}

// Array of poll options
const options = ['Option 1', 'Option 2', 'Option 3'];

// Observable button for each option
options.map(option => Button(option, () => incrementOption(option)));
Insert cell
import { Button } from '@observablehq/inputs';

Insert cell
import { Client } from "supabase-js"
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