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.

Make gv an alias for hv in general?

See original GitHub issue

GeoViews provides specialized versions of many of the components available in HoloViews, and in many cases a given HoloViews object “hv.X” can be used in a projection-aware way as “gv.X”. However, many items in HoloViews can be used as-is with GeoViews, and thus there is not in general a full set of “gv.” versions of the various bits of HoloViews. In practice, it can be difficult for a GeoViews user to remember whether some component has been implemented in GeoViews or in HoloViews, and the resulting code is also often confusing (why does it sometimes say “hv.” here, and “.gv” over here?).

I propose that we consider the alternative approach of mirroring all the main items in '.hv" so that they appear in “.gv” if they make sense there, which will make the user not have to worry about where that component was defined, and will make it simpler for us to add GV-specific versions of HV components later.

The first component that comes to mind is hv.extension(), which needs to be in any GV notebook, thus forcing a direct import of HoloViews. If that function were imported into the geoviews namespace, then users could just call gv.extension(), and someday if we wanted to add some GV-specific extension arguments we could easily do so.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Jun 5, 2018

Now done. Here’s the full API that’s exposed:

from holoviews import (extension, help, opts, output, renderer, Store, # noqa (API import)
                       Cycle, Palette, Overlay, Layout, NdOverlay, NdLayout,
                       HoloMap, DynamicMap, GridSpace, Dimension)
0reactions
jbednarcommented, May 14, 2018

I think the container types should be exposed in gv, both for practical reasons for geoviews users and as a declaration that these containers already have full support for all GeoViews functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Give a group an additional "alias" address - Google Support
As a Groups administrator, you can add alternate addresses, called email aliases, to your organization's groups. For example, if there's a group email...
Read more >
DEFINE ALIAS Statement - IBM
Purpose. Use the DEFINE ALIAS statement to define a new alias for an existing CP command on the system during initialization.
Read more >
Lambda function aliases - AWS Documentation
To create an alias. Open the Functions page of the Lambda console. Choose a function. Choose Aliases and then choose Create alias. On...
Read more >
wordlist ranked - Massachusetts Institute of Technology
... very privacy l book items company read group sex need many user said de does set under general research university mail january...
Read more >
Alias Limitations - Gigamon
For example, the following error message is displayed: (config) port 1/3/x12 alias port\1 % Invalid alias 'port\1'. '\' is a reserved character.
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