Skip to content

Instantly share code, notes, and snippets.

@linar-jether
linar-jether / simple_python_datasource.py
Last active May 24, 2023 01:22
Grafana python datasource - using pandas for timeseries and table data. inspired by and compatible with the simple json datasource ---- Up-to-date version maintained @ https://github.com/panodata/grafana-pandas-datasource
from flask import Flask, request, jsonify, json, abort
from flask_cors import CORS, cross_origin
import pandas as pd
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
@mbostock
mbostock / .block
Last active October 16, 2021 11:08
Collision Detection
license: gpl-3.0
redirect: https://observablehq.com/@d3/collision-detection/2