[Bug][Jupyter Widget] Default widget serialization fails for pandas datetime.time cells
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 56/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- jupyter, pandas, python, typescript
- Domain
- backend, data-visualization
Research direction
Start by tracing how the Python widget serializes pandas DataFrame values into get_state()['data'], then inspect the repository's widget serialization tests and the default serializer path. Reproduce the issue with the provided datetime.time example and confirm Jupyter packing succeeds with use_arrow=True. Done when default serialization handles the value clearly and the regression is covered by a test.
Written by the indexing model from the issue text.
Description
Reproduction
import datetime
import pandas as pd
from jupyter_client.session import json_packer
from keplergl import KeplerGl
df = pd.DataFrame({'lat': [37.8], 'time': [datetime.time(12, 34, 56)]})
widget = KeplerGl(data={'d': df})
json_packer(widget.get_state()['data'])
Observed: ValueError: Can't clean for JSON: datetime.time(12, 34, 56). Expected: the widget's default serialization should support this ordinary temporal value or handle it clearly. With KeplerGl(data={'d': df}, use_arrow=True), Jupyter packing succeeds for this example. This is separate from closed #4621 concerning Arrow time/duration scaling.
Environment and scope
Tested on master 8d145c6da791f096503cf6bd8a1c6c6ef7892861, Python package 0.5.0rc1, Python 3.12.5, pandas 3.0.1, geopandas 1.1.2, pyarrow 25.0.1, anywidget 0.9.21, and Node 24.21.0. The observations below come from Python widget/serializer probes and, where noted, the repository's JavaScript data or layer loader; they were not checked in a live notebook or browser.
- Dominant language
- TypeScript
- Stars
- 12.1k
- Forks
- 2k
- Avg merge
- 5h 54m
- Merged PRs (30d)
- 528
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from keplergl/kepler.gl
-
python
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
[Bug][Jupyter Widget] Mutating and re-adding a GeoJSON dictionary does not notify the Python widgetOpenpython
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
python
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
-
[Bug][Jupyter Widget] GeoDataFrame Period attributes reach the widget as integer storage ordinalsOpenpython
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Maintainers usually reply within 1 day
-
[Bug][Jupyter Widget] GeoDataFrame interval attributes lose closure semantics in the widget loaderOpenpython
Difficulty 4/5 3-5 days Newbie friendliness 53/100
Maintainers usually reply within 1 day
All issues in keplergl/kepler.gl
Similar issues
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openclaw/openclaw#212827 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
dependencies effort: small good first issue priority: low
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
TMHSDigital/screencast-mcp#509 ·
Maintainers usually reply within 1 day
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day