Published
Edited
Oct 15, 2021
3 forks
43 stars
Insert cell
Insert cell
Insert cell
viewof file = Inputs.file()
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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more