keplergl / kepler.gl

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

[Bug][Jupyter Widget] - Unable to Render the Map (Without Data Too) : Jupyter Notebook #1587

Open eisenerz108 opened 3 years ago

eisenerz108 commented 3 years ago

I am trying to plot a map using KeplerGl but there are no maps being rendered. I used the same data a month back, and it worked fine. I tried to load a map using GeoDataFrame and also without any data, but unable to see any output.

To Reproduce Steps to reproduce the behavior:

  1. load Kepler
  2. Add data & config
  3. Export map

Expected behavior A map should be displayed

Screenshots

image

Environment (please complete the following information):

eisenerz108 commented 3 years ago

Surprisingly the map was rendered today. Please find the screenshot below : (Note: I didn't make any system changes, nor ran any additional command, I just restarted my system this morning and it worked)

Since this issue has been resolved, I will close the issue.

image

eisenerz108 commented 3 years ago

Apologies, have to reopen the issue - The map is not being rendered again :(
The behaviour seems to be quite inconsistent. (I see a blank space below) Jupyter Lab is also having the same issue, please find the screenshot below:

image

lixun910 commented 3 years ago

@pyJain108 Is there any error message in the browser console?

eisenerz108 commented 3 years ago

Hello @lixun910,

The map is being rendered fine today (Please find attached the screenshot) : (I will paste the error message of the console if the map rendering fails) image

sl-victormazzeo commented 3 years ago

Hi, I have the same issue and I don't find any way to resolve it. I have the menu but not the map. It seems that no token is passed but I can't find an option to give my personal token with the jupyterlab extension.

keplergl.min.js:404 GET https://api.mapbox.com/styles/v1/mapbox/satellite-v9?pluginName=Keplergl&access_token=null 401 (Unauthorized)

Any idea? Thx!

N.B. I am using JupyterLab 3.1.12 and keplergl 0.3.1

lixun910 commented 3 years ago

@sl-victormazzeo Yes, it is because the keplergl v0.3.1 was built without a proper mapbox access token, see this pr: https://github.com/keplergl/kepler.gl/pull/1619. You can use the old keplergl==0.3.0 version, or wait for @heshan0131 to tag and release the keplergl v0.3.2. Thanks!

heshan0131 commented 3 years ago

Just pushed v0.3.2-jupyter tag, @lixun910 could you check the new release once the workflow completes?

rahatfcc commented 3 years ago

Hi @heshan0131 . By when can we expect v0.3.2 release in pypi.org ? I was making some developments on my existing product. Should I go with v0.3.0 for now?

lixun910 commented 3 years ago

Thanks, @heshan0131 ! 👍 I did a quick check:

  1. the keplergl v0.3.2 package has been published on PyPi https://pypi.org/project/keplergl/
  2. it works fine on Jupyter Notebook, JupyterLab and Google Colab.
  3. keplergl-jupyter v0.3.2 npm package has also been published on npm: https://www.npmjs.com/package/keplergl-jupyter

    even though the github action shows an error: https://github.com/keplergl/kepler.gl/runs/3617500852?check_suite_focus=true. This is a known issue of github action, and it can be solved by adding a .npmrc file. See discussion: https://github.com/npm/cli/issues/1637#issuecomment-803741809

    npm ERR! code E404
    npm ERR! 404 Not Found - PUT https://registry.npmjs.org/keplergl-jupyter - Not found
    npm ERR! 404 
    npm ERR! 404  'keplergl-jupyter@0.3.2' is not in the npm registry.

I am still waiting for conda-forge to finish the auto-build of v0.3.2 keplergl. I will check it once it's done.

sl-victormazzeo commented 3 years ago

Everything is working fine for me now. Thanks!

lixun910 commented 3 years ago

@heshan0131 Tested! keplergl v0.3.2 is on conda-forge now: https://anaconda.org/conda-forge/keplergl

doronbartov commented 2 years ago

Kepler not able to render the plots on jupyter notebook. My ipywidgets is 7.6.5 kepler version is 0.3.2 saving to html works, but is less convenient cause the map opens always on california

Would appreciate any help

jingyan-li commented 2 years ago

Hi I got the same issue on jupyter notebook: image And no map view shows up.

Kepergl version: 0.3.2 Ipywidgets : 7.7.0

Here is the error message in the browser console: image

Currently, map.save_to_html() works for me. But I cannot adjust the configs and save configs in the HTML file for future rendering.

Thank you for any help!

DimitrisMilonopoulos commented 2 years ago

Any update on this issue?

joaopcoelho commented 2 years ago

I'm also having the same issue using keplergl==0.3.2.

Uninstalling and installing 0.3.0 instead worked. I'd still be interested in understanding the reason behind this.

vsincholle commented 1 year ago

I had the same issue and downgrading from 0.3.2 to 0.3.0 solved issue for me too

carolinsmemory commented 1 year ago

It seems like this issue might resolve itself within a couple of days, but for now, neither version (0.3.2 or 0.3.0) shows a base map for me. They are either black or white, no boarders, water, roads etc. I ran the same code a few weeks ago and it worked fine.

hazmimarzukian commented 1 week ago

I had the same issue and downgrading from 0.3.2 to 0.3.0 solved issue for me too

i did try to downgrade but the same problem still persists.