// Return the client object so that it is the value of the code cell.
returnc;
}
<style>
/* Define styles using an HTML code cell and CSS inside of a <style/> element. */
.todo-header{
/* Create a blue dashed border. */
border-top:3pxdashedblue;
}
.todo-footer{
/* Create a blue dashed border. */
border-bottom:3pxdashedblue;
}
.todo{
/* Create a blue dashed border. */
border-left:3pxdashedblue;
border-right:3pxdashedblue;
/* Increase the padding and font size. */
padding:10px;
font-size:20px;
box-sizing:border-box;
margin:0px;
}
.todobutton{
/* Increase spacing between buttons. */
margin-right:10px;
}
</style>
// Import the DuckDB client dependency for using an in-browser DuckDB database.
import{DuckDBClient}from'@cmudig/duckdb'
// Import the D3 dependency for using its convenient DOM element manipulation functions.
d3=require("d3@6")
// Check the table schema.
client1.describe('todo')
client1
--- Check the table contents.
SELECT task_id, name FROM todo
client1
-- Check the table contents.
SUMMARIZE todo
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.