Skip to content

Commit

Permalink
Exposed parts of holoviews API
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 6, 2018
1 parent 1beae40 commit 8034fbf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions geoviews/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import param

from holoviews import extension, help, opts, output, renderer, Store, Cycle, Palette # noqa (API import)

from .element import (_Element, Feature, Tiles, # noqa (API import)
WMTS, LineContours, FilledContours, Text, Image,
Points, Path, Polygons, Shape, Dataset, RGB,
Expand All @@ -11,16 +14,16 @@


__version__ = str(param.version.Version(fpath=__file__, archive_commit="$Format:%h$",
reponame="geoviews"))
reponame="geoviews"))


# make pyct's example/data commands available if possible
from functools import partial
try:
from pvutil.cmd import copy_examples as _copy, fetch_data as _fetch, examples as _examples
copy_examples = partial(_copy,'geoviews')
fetch_data = partial(_fetch,'geoviews')
examples = partial(_examples,'geoviews')
copy_examples = partial(_copy, 'geoviews')
fetch_data = partial(_fetch, 'geoviews')
examples = partial(_examples, 'geoviews')
except ImportError:
def _missing_cmd(*args,**kw): return("install pyct to enable this command (e.g. `conda install pyct`)")
_copy = _fetch = _examples = _missing_cmd
Expand Down

0 comments on commit 8034fbf

Please sign in to comment.