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
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "Hbol",
"metadata": {},
"outputs": [],
"source": [
"x = 1"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "MJUe",
"metadata": {
"marimo": {
"name": "*add"
}
},
"outputs": [],
"source": [
"def add(a, b):\n",
" return a + b"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "vblA",
"metadata": {
"marimo": {
"config": {
"hide_code": true
},
"name": "*subtract"
}
},
"outputs": [],
"source": [
"def subtract(a, b):\n",
" return a - b"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bkHC",
"metadata": {
"marimo": {
"name": "*MyClass"
}
},
"outputs": [],
"source": [
"class MyClass:\n",
" def __init__(self, val):\n",
" self.val = val\n",
" def double(self):\n",
" return self.val * 2"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "lEQa",
"metadata": {
"marimo": {
"config": {
"hide_code": true
},
"name": "*HiddenClass"
}
},
"outputs": [],
"source": [
"class HiddenClass:\n",
" def __init__(self, val):\n",
" self.val = val"
]
}
],
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
},
"marimo": {
"marimo_version": "0.0.0"
}
},
"nbformat": 4,
"nbformat_minor": 5
}