Skip to content

Commit

Permalink
Ensure backend is initialized on import (#275)
Browse files Browse the repository at this point in the history
* Ensure backend is initialized on import

* Pinned pyctdev
  • Loading branch information
philippjfr authored Jan 14, 2019
1 parent fe018ad commit 31116f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- pip install pyctdev && doit miniconda_install && pip uninstall -y doit pyctdev
- export PATH="$HOME/miniconda/bin:$PATH" && hash -r
- conda config --set always_yes True
- conda install -c pyviz pyctdev && doit ecosystem_setup
- conda install -c pyviz "pyctdev>=0.5" && doit ecosystem_setup
install:
- doit env_create $CHANS_DEV --python=$PYENV_VERSION
- source activate test-environment
Expand Down
3 changes: 3 additions & 0 deletions geoviews/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
__version__ = str(param.version.Version(fpath=__file__, archive_commit="$Format:%h$",
reponame="geoviews"))

# Ensure opts utility is initialized with GeoViews elements
if extension._loaded:
Store.set_current_backend(Store.current_backend)

# make pyct's example/data commands available if possible
from functools import partial
Expand Down

0 comments on commit 31116f0

Please sign in to comment.