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.

annotators wont work in geoviews

See original GitHub issue

Annotators example at https://geoviews.org/user_guide/Annotators.html doesn’t work, annotators
using holoviews works though.

ALL software version info

python=3.7 bokeh=2.0.2 holoviews=1.13.2 geoviews=1.8.1 OS: Linux, Browsers: Firefox or Chrome

to be sure of environment issues, I tried on binder using repo: https://github.com/suvarchal/geoviews_bug and used it for examples below.

Description of expected behavior and the observed behavior

Expected it to work like holoviews annotators example but doesn’t. JS Console gives two errors based on if holoviews was used before geoviews snippet or not.

Complete, minimal, self-contained example code that reproduces the issue

Basically, the code from the docs, https://geoviews.org/user_guide/Annotators.html. If it helps here are binder links to the notebooks. Example 1: Binder geoviews_bug.ipynb

Example 2: Binder geoviews_holoviews_bug.ipynb

Browser JavaScript console output

Error: Model 'geoviews.models.custom_tools.ClearTool' does not exist. This could be due to a widget or a custom model not being registered before first usage. or Error: Model 'geoviews.models.custom_tools.CheckpointTool' does not exist. This could be due to a widget or a custom model not being registered before first usage.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Sep 21, 2021

Please open a new issue with the versions of the various libraries you are using.

1reaction
weiji14commented, Aug 28, 2021

This seems to be broken again. I’m getting no annotation tools showing up, and the same Uncaught Error: Model 'geoviews.models.custom_tools.ClearTool' does not exist. This could be due to a widget or a custom model not being registered before first usage. message in the console.

image

Binder link to reproduce: Binder

Dependencies (installed from conda-forge):

  • python=3.8
  • bokeh=2.3.3
  • holoviews=1.14.5
  • geoviews=1.9.1
  • OS=Linux
  • Browser=Firefox 78.13.0esr
Read more comments on GitHub >

github_iconTop Results From Across the Web

annotators wont work in geoviews · Issue #526 - GitHub
I'm getting no annotation tools showing up, and the same Uncaught Error: Model 'geoviews.models.custom_tools.ClearTool' does not exist.
Read more >
Annotators — GeoViews 1.9.5+g5eb9cd4-dirty documentation
When annotating a GeoViews element it is assumed that the data is displayed in Web Mercator coordinates (as is the default when working...
Read more >
Annotators — EarthSim 0.0.1 documentation
A GeoAnnotator allows drawing polygons and points on top of a tile source and syncing the drawn data back to Python. It does...
Read more >
Ml annotators — Examples 0.1.0 documentation
Meanwhile, use the Bokeh/HoloViews annotation tools if you want to quickly create a fully ... In GeoViews, you can easily get a tile...
Read more >
Annotators — GeoViews 1.9.6a2 documentation
import geoviews as gv import cartopy.crs as ccrs from geoviews import ... (as is the default when working with the Bokeh backend) but...
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