Quadratic 101

A quick introduction to the basics of using the Quadratic spreadsheet.

Writing data to the spreadsheet

Anything you can calculate with code, you can write to the spreadsheet — data types such as strings, numbers, and dates work, as well as types like Dataframes because Pandas, NumPy, and SciPy are included by default — giving you the power to manipulate data in a programming language and visualize it on a spreadsheet.

Code -> Spreadsheet

01234567891011121314
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1# Last line writes to the spreadsheet
22 ** 6

Reading data from the spreadsheet

Workflows often follow a pattern: take some raw data, transform it, then visualize your work. Quadratic makes this easy by allowing you to programmatically read data from anywhere on your spreadsheet, run some calculations on it, then display the results.

Spreadsheet -> code

01234567891011121314
015
1
210
320200
430300
5
6
7
8
9
10
11
12
13
14
15
1# Read a value from the sheet
2value = cell(0,0)
3
4# Add a number and write it to the sheet
5value + 5

Code or formulas? How about both

In a traditional spreadsheet you use formulas. In Quadratic you can use both formulas and code, whichever best suits the task at hand. Plus, your no-code teammates can still collaborate with you — it’s the best of both worlds.

Formulas + code

ABCDEFGH
05
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1A0 + A1

Fetch data from any source

Using the primitives of a programming language, you can easily fetch data from an API and work with it in your spreadsheet. Now you can build a live connection to your ever-changing data and your spreadsheet is always up-to-date.

Network

01234567891011121314
0NPM downloads yesterday for: react
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1# Import library for making network requests
2import requests
3
4# Make API call
5response = requests.get(
6  'https://api.npmjs.org/downloads/range/last-day/react'
7)
8
9# Turn to JSON
10json = response.json()
11
12# Write to the spreadsheet
13json['downloads'][0]['downloads']

Programmatic data visualizations

Using Python, you can leverage the popular graphing library Plotly to create charts and graphs directly in your spreadsheet. Choose from all that plotly has to offer, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts, and more.

Charts & graphs

01234567891011121314
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1import plotly.express as px
2import pandas as pd
3
4# Create the chart
5fig = px.line(
6  pd.DataFrame({
7    'Years': [2020, 2021, 2022, 2023],
8    'Values': [3, 5, 12, 24]
9  }),
10  x='Years',
11  y='Values',
12  title='Simple line chart'
13)
14
15# Display the chart
16fig.show()
Quadratic logo

The infinite canvas spreadsheet with code.

Try it now