Public
Edited
Sep 1, 2023
Insert cell
file
Insert cell
Insert cell
Insert cell
viewof csvfile = Inputs.file({label: "CSV file", accept: ".csv", required: true})
Insert cell
data = csvfile.csv({typed: true})
Insert cell
Insert cell
viewof jsonfile = Inputs.file({label: "JSON file", accept: ".json", required: true})
Insert cell
json = jsonfile.json()
Insert cell
viewof textfile = Inputs.file({label: "Text file", accept: ".txt", required: true})
Insert cell
text = textfile.text()
Insert cell
viewof imgfile = Inputs.file({label: "Image file", accept: ".png,.jpg", required: true})
Insert cell
image = imgfile.image()
Insert cell
viewof xlsxfile = Inputs.file({label: "Excel file", accept: ".xlsx", required: true})
Insert cell
workbook = xlsxfile.xlsx()
Insert cell
viewof zipfile = Inputs.file({label: "ZIP archive", accept: ".zip", required: true})
Insert cell
archive = zipfile.zip()
Insert cell
Insert cell
viewof files = Inputs.file({label: "Files", multiple: true})
Insert cell
files
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