Add tqdm progress bar to load_roi_data

Loading the full batch issues 968 SQL queries and takes minutes — show
a tqdm progress bar (one tick per fly/ROI row) and print an upfront
"this takes 1-3 minutes" notice so the user knows to wait. Uses
tqdm.auto so it picks the Jupyter widget when run from a notebook and
plain text on the CLI. New `progress=True` parameter on load_roi_data,
flip to False for silent batch use. tqdm + ipywidgets added to
requirements.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Giorgio Gilestro 2026-05-01 09:34:42 +01:00
parent ac3b8c13f0
commit 8abb3d5955
2 changed files with 35 additions and 2 deletions

View file

@ -5,3 +5,5 @@ seaborn>=0.12
scipy>=1.10
scikit-learn>=1.3
jupyter>=1.0
tqdm>=4.66
ipywidgets>=8.0