These classes allow you to define a DB connection that marimo understands.
import pyarrow as pa
from typing import Any, Dict, List, Optional, Tuple, Union
class LogfireDBError(Exception):
"""Base exception for Logfire DB API errors"""
pass| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "typer", | |
| # ] | |
| # /// | |
| import typer | |
| import subprocess | |
| import sys |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "altair", | |
| # "vega-datasets", | |
| # ] | |
| # /// | |
| """ | |
| Annual Weather Heatmap |
| const player = new manim.Player(container, { | |
| width, | |
| height, | |
| autoPlay: true, | |
| backgroundColor: manim.BLACK, | |
| }); | |
| player.sequence(async (scene) => { | |
| const circle = new manim.Circle({ radius: 1.5, color: manim.BLUE, fillOpacity: 1 }); | |
| await scene.play(new manim.Create(circle)); |
| import path from "node:path"; | |
| import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; | |
| import { isToolCallEventType } from "@mariozechner/pi-coding-agent"; | |
| const SKILL_DIR = "/Users/vincentwarmerdam/.agents/skills/marimo-pair"; | |
| const ALLOWED_READ_ROOTS = [SKILL_DIR]; | |
| function hasDangerousShellSyntax(command: string): boolean { | |
| return /(&&|\|\||;|\||>|`)/.test(command); | |
| } |
| # /// script | |
| # dependencies = [ | |
| # "marimo>=0.17.0", | |
| # "polars", | |
| # "pyzmq", | |
| # ] | |
| # /// | |
| import marimo |
| # /// script | |
| # dependencies = [ | |
| # "marimo>=0.17.0", | |
| # "polars", | |
| # "pyzmq", | |
| # ] | |
| # /// | |
| import marimo |
| # /// script | |
| # dependencies = [ | |
| # "marimo>=0.17.0", | |
| # "polars", | |
| # "pyzmq", | |
| # ] | |
| # /// | |
| import marimo |
| class Maybe: | |
| def __init__(self, obj): | |
| self._obj = obj | |
| def __getattr__(self, name): | |
| if self._obj is None: | |
| return Maybe(None) | |
| try: | |
| result = getattr(self._obj, name) | |
| return Maybe(result) |
| import pyarrow as pa | |
| from typing import Any, Dict, List, Optional, Tuple, Union | |
| class LogfireDBError(Exception): | |
| """Base exception for Logfire DB API errors""" | |
| pass | |
| class LogfireDBOperationalError(LogfireDBError): |
These classes allow you to define a DB connection that marimo understands.
import pyarrow as pa
from typing import Any, Dict, List, Optional, Tuple, Union
class LogfireDBError(Exception):
"""Base exception for Logfire DB API errors"""
pass