question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug][Jupyter Widget] Is there a way to use kepler in colab?

See original GitHub issue

Describe the bug I’d like to be able to use kepler in the context of google colab notebooks. It appears to be not currently possible. Following the steps in the user guide doesn’t generate a map, instead only showing a link to the user guide.

Screen Shot 2020-01-29 at 6 08 34 PM

To Reproduce Steps to reproduce the behavior: Open a new google colab notebook, try to make a map, such as with the code

from keplergl import KeplerGl
map_1 = KeplerGl()
map_1

Which should yield a map, but instead gives:

User Guide: https://github.com/keplergl/kepler.gl/blob/master/docs/keplergl-jupyter/user-guide.md

Environment (please complete the following information):

  • Python version: python3
  • google colab
  • keplergl Widget version 0.1.2

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
wangrui6commented, Feb 7, 2020

Have you guys figured out how to use Kepler.gl on Colab? Got the same issue with andrew.

4reactions
giswqscommented, Sep 2, 2021

Colab now supports custom widgets like ipyleaflet and keplergl (https://github.com/googlecolab/colabtools/issues/498#issuecomment-910755873). Check out this notebook example: https://gishub.org/leafmap_colab.

Adding the following code block when displaying the map. It needs to be in the same code block where the map is displayed.

from IPython.display import Javascript
display(Javascript('''
  google.colab.widgets.installCustomManager('https://ssl.gstatic.com/colaboratory-static/widgets/colab-cdn-widget-manager/6a14374f468a145a/manager.min.js');
'''))

Screenshot_20210902_001332

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Notebook - kepler.gl
Interact with kepler.gl and customize layers and filters. Map data and config will be stored locally to the widget state. To make sure...
Read more >
Creating 3D maps using leafmap and keplergl on Google Colab
Try it out: https://gishub.org/keplergl_colableafmap homepage: https://leafmap.orggeemap homepage: https://geemap.
Read more >
Jupyter Widgets in Colab - YouTube
Presentation by Pete Blois about how Google Colab implemented support for Jupyter Widgets. Presented at the Jupyter Widgets development ...
Read more >
FOSS4G 2021 - leafmap
A Python package for interactive mapping and geospatial analysis with minimal coding in a Jupyter environment.
Read more >
Kepler.GL & Jupyter Notebooks: Geospatial Data Visualization ...
kepler.gl for Jupyter is an excellent tool for big Geospatial data visualisation. Combine world-class visualisation tool, easy to use User ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found