[Bug][Jupyter Widget] localStorage causing SecurityError
- Dominant language
- TypeScript
- Stars
- 12k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 66
Description
**Describe the bug**
When using the jupyter kepler plugin in Databricks (which is a hosted jupyter notebook), there is an intermittent localStorage issue causing the kepler widget to break on load.
**To Reproduce**
There isn't a clear way to reproduce this issue. It seems to happen every couple of weeks. We've noticed clearing cookies and cache in Chrome sometimes resolves the issue, it has also been reported that it has unintentionally been resolved after a couple days (users don't know why the issue goes away when it does).
**Expected behavior**
When this error is experienced, I'd expect it to be caught and gracefully handled. While performing a code review for localStorage usage, it seems to only be used in the widget html template for google analytics. Perhaps we can provide a config flag to disable google analytics if it's the issue.
**Screenshots**

**Environment (please complete the following information):**
- Python version: python3
- keplergl Widget version: latest (0.2.2)
**Additional context**
The widget only appears to use localStorage for google analytics.
https://github.com/keplergl/kepler.gl/blob/14c35fc048a745faab0c6770cab7a4625ccedda3/bindings/kepler.gl-jupyter/js/template/keplergl-html.ejs#L102
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.