From 8034fbf36bc31f05c4e69d8db805d0784a0820ec Mon Sep 17 00:00:00 2001
From: Philipp Rudiger
Date: Sun, 6 May 2018 02:36:49 +0100
Subject: [PATCH] Exposed parts of holoviews API
---
geoviews/__init__.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/geoviews/__init__.py b/geoviews/__init__.py
index 5ec43777..6a219c5f 100644
--- a/geoviews/__init__.py
+++ b/geoviews/__init__.py
@@ -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,
@@ -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