A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
{
"$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json",
"config": {
"view": {
"continuousHeight": 300,
"continuousWidth": 300
}
},
"data": {
"format": {
"type": "csv"
},
"url": "data:text/csv;base64,Ym9vbF9jb2wKVHJ1ZQpGYWxzZQpUcnVlCg=="
},
"layer": [
{
"encoding": {
"color": {
"field": "bool_col",
"legend": {
"title": "bool_col"
},
"scale": {
"scheme": "category10"
},
"type": "nominal"
},
"theta": {
"field": "count",
"stack": true,
"type": "quantitative"
},
"tooltip": [
{
"field": "bool_col",
"title": "bool_col",
"type": "nominal"
},
{
"field": "count",
"format": ",.0f",
"title": "Number of records",
"type": "quantitative"
}
]
},
"mark": {
"outerRadius": 85,
"type": "arc"
},
"transform": [
{
"aggregate": [
{
"as": "count",
"op": "count"
}
],
"groupby": [
"bool_col"
]
},
{
"joinaggregate": [
{
"as": "total",
"field": "count",
"op": "sum"
}
]
},
{
"as": "percentage",
"calculate": "datum.count / datum.total"
}
]
},
{
"encoding": {
"color": {
"field": "bool_col",
"legend": {
"title": "bool_col"
},
"scale": {
"scheme": "category10"
},
"type": "nominal"
},
"text": {
"field": "percentage",
"format": ".2%",
"type": "quantitative"
},
"theta": {
"field": "count",
"stack": true,
"type": "quantitative"
},
"tooltip": [
{
"field": "bool_col",
"title": "bool_col",
"type": "nominal"
},
{
"field": "count",
"format": ",.0f",
"title": "Number of records",
"type": "quantitative"
}
]
},
"mark": {
"radius": 110,
"size": 13,
"type": "text"
},
"transform": [
{
"aggregate": [
{
"as": "count",
"op": "count"
}
],
"groupby": [
"bool_col"
]
},
{
"joinaggregate": [
{
"as": "total",
"field": "count",
"op": "sum"
}
]
},
{
"as": "percentage",
"calculate": "datum.count / datum.total"
}
]
}
],
"width": "container"
}