[nb] skin_subs_explorer.py: exception: 'list' object has no attribute 'get' #548

Closed
opened 2026-07-10 13:51:20 +00:00 by kert · 1 comment
Owner

Auto-filed by the notebook error filer (nb-sig:c70871f44bb7 — do not edit this marker; dedup and auto-close key on it).

  • Notebook: skin_subs_explorer.py
  • Error: exception: 'list' object has no attribute 'get'
  • Source: nb-watcher
Traceback (most recent call last):
  File "/tmp/marimo_21009/__marimo__cell_Xref_.py", line 58, in <module>
    mo.vstack([mo.ui.altair_chart(mfr_chart), mo.ui.altair_chart(cat_chart)])
               ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/home/kert/workspace/.venv/lib/python3.13/site-packages/marimo/_plugins/ui/_impl/altair_chart.py", line 629, in __init__
    self._binned_fields = _get_binned_fields(vega_spec)
                          ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/home/kert/workspace/.venv/lib/python3.13/site-packages/marimo/_plugins/ui/_impl/altair_chart.py", line 88, in _get_binned_fields
    if encoding.get("bin"):
       ^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'

This issue is closed automatically when the error stops occurring.

Auto-filed by the notebook error filer (`nb-sig:c70871f44bb7` — do not edit this marker; dedup and auto-close key on it). - **Notebook:** `skin_subs_explorer.py` - **Error:** `exception`: 'list' object has no attribute 'get' - **Source:** nb-watcher ``` Traceback (most recent call last): File "/tmp/marimo_21009/__marimo__cell_Xref_.py", line 58, in <module> mo.vstack([mo.ui.altair_chart(mfr_chart), mo.ui.altair_chart(cat_chart)]) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/kert/workspace/.venv/lib/python3.13/site-packages/marimo/_plugins/ui/_impl/altair_chart.py", line 629, in __init__ self._binned_fields = _get_binned_fields(vega_spec) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/kert/workspace/.venv/lib/python3.13/site-packages/marimo/_plugins/ui/_impl/altair_chart.py", line 88, in _get_binned_fields if encoding.get("bin"): ^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'get' ``` This issue is closed automatically when the error stops occurring.
kert added the notebooks label 2026-07-10 14:07:30 +00:00
Author
Owner

Fixed in 9b58e2dfb2. marimo 0.23.13's _get_binned_fields assumes every vega encoding channel is a dict, but altair compiles tooltip=[...] to a list of field defs — so mo.ui.altair_chart() crashed on these display-only charts. Unwrapped mo.ui.altair_chart(...) to plain chart output in skin_subs_explorer.py and acodb_explorer.py (same latent pattern); nothing read the wrappers' .value, so no interactivity was lost.

Fixed in https://git.fhirworx.io/homelab/stack/commit/9b58e2dfb2646b0e8f0eace4b2939657c03518e1. marimo 0.23.13's `_get_binned_fields` assumes every vega encoding channel is a dict, but altair compiles `tooltip=[...]` to a *list* of field defs — so `mo.ui.altair_chart()` crashed on these display-only charts. Unwrapped `mo.ui.altair_chart(...)` to plain chart output in skin_subs_explorer.py and acodb_explorer.py (same latent pattern); nothing read the wrappers' `.value`, so no interactivity was lost.
kert closed this issue 2026-07-10 18:37:34 +00:00
Sign in to join this conversation.