Skip to content

Instantly share code, notes, and snippets.

@severo
severo / set_gated.py
Created August 12, 2022 16:00
A function to set the gated parameter on a HF repository
from huggingface_hub.hf_api import ( # type: ignore
REPO_TYPES,
REPO_TYPES_URL_PREFIXES,
HfApi,
_raise_for_status,
)
def update_repo_settings(
hf_api: HfApi,
repo_id: str,
@severo
severo / dataframeV2.md
Last active July 1, 2025 16:16
HighTable DataFrame V2

HighTable DataFrame V2

This is a proposal for a new DataFrame format in https://github.com/hyparam/hightable.

Goals:

  • synchronous rendering
  • events to trigger rerenders
  • support sorting
  • support sampling and shuffling