keplergl / keplergl/kepler.gl

keplergl Jupyter save_to_html exceeds 10 MB file limitation.

Open
#2,996 1 comment 0 reactions 0 assignees View on GitHub
bug jupyter
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**Describe the bug**
When using the keplergl python module (versions 0.3.6 or 0.3.7), the "save_to_html" function creates too large of HTML files to render (over 10 MB). It doesn't seem to matter how small the data is, issue can be reproduced with a single layer with a single data point. Note that this issue doesn't exist in version 0.3.2.

**To Reproduce**
In a Jupyter notebook, install keplergl python library version 0.3.7 or 0.3.6. Create a map and try saving to HTML. File will be created, but is unusable due to exceeding HTML 10 MB limitation.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Desktop:**
- Windows 11 Home
- Chrome Browser
- Databricks Notebook
- keplergl python verisons 0.3.6 or 0.3.7

Screenshot version 0.3.7 (issue) :

![Image](https://github.com/user-attachments/assets/58a4e42f-a56b-46c1-8024-1f7b7ad8db0d)

Screenshot version 0.3.6 (issue) :

![Image](https://github.com/user-attachments/assets/bb95cfc2-82f2-44a5-8485-08b67b43fbbb)

Screenshot version 0.3.2 (working version) :

![Image](https://github.com/user-attachments/assets/ca92514b-efc0-45cf-b74b-26a8ac5c09b5)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in a Jupyter notebook with keplergl 0.3.6 or 0.3.7, using a map containing one layer and one data point, then call save_to_html. Compare the generated HTML size and renderability with version 0.3.2; done means small datasets no longer produce unusable HTML files exceeding the 10 MB limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.