Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bindings/kepler.gl-jupyter/keplergl/keplergl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
import sys
import json
import ipywidgets as widgets
from pkg_resources import resource_string
try:
# Python 3.9+
from importlib.resources import files
def resource_string(package, resource):
return files(package).joinpath(resource).read_bytes()
except ImportError:
# Python < 3.9 fallback
from pkg_resources import resource_string
from traitlets import Unicode, Dict, Int, validate, TraitError
import pandas as pd
import geopandas
Expand Down