Skip to content

Instantly share code, notes, and snippets.

@thibaudcolas
thibaudcolas / README.md
Last active November 8, 2023 21:24
2023 ATAG 2.0 audit of Wagtail
@bollwyvl
bollwyvl / rich-input.md
Last active December 18, 2022 20:34
Jupyter Rich Input

Rich Input for Jupyter Cells

Elevator Pitch

Extend the Jupyter Notebook Format to offer an optional input field for all Cell types. This is an object which mirrors rich display outputs, providing data and associated metadata, both dictionaries keyed by MIME types.

Jupyter Clients that create and edit Notebooks MAY create this field, but MUST continue to emit the source field as the most-portable source-of-truth.

@ericwbailey
ericwbailey / Resouces.md
Created March 8, 2022 01:40
Accessibility and Inclusive Design resources: #talk #ProjectJupyter
@shawwn
shawwn / What happens when you allocate a JAX tensor on a TPU.md
Last active April 15, 2023 04:11
JAX C++ stack trace walkthrough for TpuExecutor_Allocate
@tonybaloney
tonybaloney / app.py
Last active March 25, 2024 23:52
FastAPI with OpenTelemetry
from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter
from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse
from opentelemetry.context import get_current as get_current_context
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
from opentelemetry.sdk.trace import TracerProvider, _Span
from opentelemetry.sdk.trace.export import (BatchSpanProcessor,
ConsoleSpanExporter,
SimpleSpanProcessor)
from starlette.exceptions import HTTPException as StarletteHTTPException
@manics
manics / README.md
Last active October 6, 2023 11:16
JupyterHub in BinderHub

JupyterHub in BinderHub

Binder

Have you ever wanted to run JupyterHub inside BinderHub? No? Didn't think so. But if you did....

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / IDatasette.ipynb
Last active December 14, 2021 02:41
IDatasette
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/awk -f
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff
# My copy here is written in awk instead of C, has no compelling benefit.
# Public domain. @thingskatedid
# Run as awk -v x=xyz ... or env variables for stuff?
# Assumptions: the data is evenly spaced along the x-axis
# TODO: moving average