keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.4k stars 1.74k forks source link

[Bug][Jupyter Widget] Python 3 compatibility? #579

Closed darribas closed 5 years ago

darribas commented 5 years ago

Describe the bug Jupyter widget for Kepler does not seem to work under Python 3

To Reproduce Steps to reproduce the behavior:

  1. Using the following Dockerfile
FROM darribas/gds:2.0

RUN pip install keplergl

The darribas/gds:2.0 image is based on the Jupyter docker stacks, you can see versions installed here.

  1. Build the image
docker build -t kgl .
  1. Launch JupyterLab through the container:
docker run -p 8888:8888 -v ${PWD}:/home/jovyan/work --rm -ti kgl
  1. Open a new notebook and import Kepler.gl widget
Capture

Am I missing something?

darribas commented 5 years ago

Further inspecting, it seems to point to a bug on L.56?

Other print statements (e.g. L.173) are Python 3-compatible.

amir-ghasemi commented 5 years ago

Replacingprint data with print(data) resolved the issue.

darribas commented 5 years ago

In case it's of help, I've issued a patch with the fix over at #582 @heshan0131

d-wasserman commented 5 years ago

When should we expect this in the pip installation? I am fine editing locally for now.

heshan0131 commented 5 years ago

python3 fixes are released with 0.1.0a7. closing for now