:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
from posthog.rate_limit import _UserBucketRateThrottle
# Each new notebook can start a paid kernel sandbox, so these rates stop a scripted create loop.
class NotebookCreateBurstThrottle(_UserBucketRateThrottle):
scope = "notebook_create_burst"
rate = "10/minute"
class NotebookCreateSustainedThrottle(_UserBucketRateThrottle):
scope = "notebook_create_sustained"
rate = "30/hour"
class NotebookKernelStartBurstThrottle(_UserBucketRateThrottle):
scope = "notebook_kernel_start_burst"
rate = "5/minute"
class NotebookKernelStartSustainedThrottle(_UserBucketRateThrottle):
scope = "notebook_kernel_start_sustained"
rate = "20/hour"