ioam / jupytercon2017-holoviews-tutorial Goto Github PK
View Code? Open in Web Editor NEWHoloViews+Bokeh tutorial for JupyterCon 2017
Home Page: http://holoviews.org
License: BSD 3-Clause "New" or "Revised" License
HoloViews+Bokeh tutorial for JupyterCon 2017
Home Page: http://holoviews.org
License: BSD 3-Clause "New" or "Revised" License
when testing player_app_with_solutions.py in jupytercon2017-holoviews-tutorial/solutions/apps I am getting the following error ''' ERROR:'charmap' codec can't decode byte 0x9d in position 3167: character maps to ''' which is going away if you load csv file without parsing dates.
Here is the list of my environment libraries:
alabaster 0.7.12 py36_0
appdirs 1.4.3 py36h28b3542_0
arrow-cpp 0.11.0 py36_vc14h6a212fc_0 [vc14] conda-forge
asn1crypto 0.24.0 py36_0
astroid 2.0.4 py36_0
atomicwrites 1.2.1 py36_0
attrs 18.2.0 py36h28b3542_0
automat 0.7.0 py36_0
babel 2.6.0 py36_0
backcall 0.1.0 py36_0
blas 1.0 mkl
bleach 2.1.4 py36_0
bokeh 1.0.0dev6 pyhdd78535_0 pyviz/label/dev
boost-cpp 1.67.0 vc14_0 [vc14] conda-forge
ca-certificates 2018.03.07 0
cartopy 0.16.0 py36hbd42bde_0
certifi 2018.8.24 py36_1
cffi 1.11.5 py36h74b6da3_1
chardet 3.0.4 py36_1
click 7.0 py36_0
click-plugins 1.0.3 py36_1
cligj 0.4.0 py36_1
cloudpickle 0.5.6 py36_0
colorama 0.3.9 py36h029ae33_0
colorcet 1.0.0 py36_0
constantly 15.1.0 py36h28b3542_0
cryptography 2.3.1 py36h74b6da3_0
curl 7.60.0 vc14_0 [vc14] conda-forge
cycler 0.10.0 py36h009560c_0
cytoolz 0.9.0.1 py36hfa6e2cd_1
dask 0.19.2 py36_0
dask-core 0.19.2 py36_0
dask-glm 0.1.0 py36_0
dask-ml 0.10.0 py36_0
dask-searchcv 0.2.0 py36_0
datashader 0.6.8 py_0 pyviz/label/dev
datashape 0.5.4 py36_1
decorator 4.3.0 py36_0
descartes 1.1.0 py36_0
distributed 1.23.2 py36_0
docutils 0.14 py36h6012d8f_0
entrypoints 0.2.3 py36_2
expat 2.2.5 vc14_0 [vc14] conda-forge
fastparquet 0.1.6 py36hfa6e2cd_0
fiona 1.7.10 py36h5bf8d1d_0
freetype 2.8.1 vc14_0 [vc14] conda-forge
freexl 1.0.5 vc14_0 [vc14] conda-forge
futures-compat 1.0 py3_0
gdal 2.2.2 py36hcebd033_1
geopandas 0.3.0 py36_0
geos 3.6.2 h9ef7328_2
geoviews 1.5.4a13 py_0 pyviz/label/dev
geoviews-core 1.5.4a13 py_0 pyviz/label/dev
gflags 2.2.1 vc14_0 [vc14] conda-forge
glog 0.3.5 h6538335_1
hdf4 4.2.13 vc14_0 [vc14] conda-forge
hdf5 1.10.1 vc14_2 [vc14] conda-forge
heapdict 1.0.0 py36_2
holoviews 1.11.0a7 py_0 pyviz/label/dev
html5lib 1.0.1 py36_0
hvplot 0.2.1 py_0 pyviz/label/dev
hyperlink 18.0.0 py36_0
icc_rt 2017.0.4 h97af966_0
icu 58.2 vc14_0 [vc14] conda-forge
idna 2.7 py36_0
imageio 2.4.1 py36_0
imagesize 1.1.0 py36_0
incremental 17.5.0 py36_0
intel-openmp 2019.0 118
ipykernel 4.10.0 py36_0
ipython 6.5.0 py36_0
ipython_genutils 0.2.0 py36h3c5d0ee_0
ipywidgets 7.4.2 py36_0
isort 4.3.4 py36_0
jedi 0.12.1 py36_0
jinja2 2.10 py36_0
jpeg 9b vc14_2 [vc14] conda-forge
jsonschema 2.6.0 py36h7636477_0
jupyter 1.0.0 py36_7
jupyter_client 5.2.3 py36_0
jupyter_console 5.2.0 py36_1
jupyter_core 4.4.0 py36_0
jupyterlab_launcher 0.13.1 py36_0
kealib 1.4.7 vc14_4 [vc14] conda-forge
keyring 13.2.1 py36_0
kiwisolver 1.0.1 py36h6538335_0
krb5 1.14.6 vc14_0 [vc14] conda-forge
lazy-object-proxy 1.3.1 py36hfa6e2cd_2
libboost 1.67.0 hd9e427e_4
libcurl 7.61.1 h7602738_0
libgdal 2.2.2 h2727f2b_1
libiconv 1.15 h1df5818_7
libkml 1.3.0 he5f2a48_4
libnetcdf 4.4.1.1 vc14_10 [vc14] conda-forge
libpng 1.6.34 vc14_0 [vc14] conda-forge
libpq 9.6.6 hfe3f2bf_0
libsodium 1.0.16 vc14_0 [vc14] conda-forge
libspatialindex 1.8.5 vc14_1 [vc14] conda-forge
libspatialite 4.3.0a h383548d_18
libssh2 1.8.0 hd619d38_4
libtiff 4.0.9 vc14_0 [vc14] conda-forge
libxml2 2.9.7 vc14_0 [vc14] conda-forge
libxslt 1.1.32 vc14_0 [vc14] conda-forge
llvmlite 0.24.0 py36h6538335_0
locket 0.2.0 py36hfed976d_1
lxml 4.2.3 py36heafd4d3_0 conda-forge
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markupsafe 1.0 py36hfa6e2cd_1
matplotlib 2.2.2 py36h153e9ff_1
mccabe 0.6.1 py36_1
mistune 0.8.3 py36hfa6e2cd_1
mkl 2019.0 118
mkl_fft 1.0.6 py36hdbbee80_0
mkl_random 1.0.1 py36h77b88f5_1
more-itertools 4.3.0 py36_0
msgpack-python 0.5.6 py36he980bc4_1
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py36_0
munch 2.3.2 py36_0
nbconvert 5.3.1 py36_0
nbformat 4.4.0 py36h3a5bc1b_0
netcdf4 1.3.1 py36h8bd0532_2
networkx 2.2 py36_1
notebook 5.7.0 py36_0
numba 0.39.0 py36h830ac7b_0
numpy 1.15.2 py36ha559c80_0
numpy-base 1.15.2 py36h8128ebf_0
numpydoc 0.8.0 py36_0
olefile 0.46 py36_0
openjpeg 2.3.0 vc14_2 [vc14] conda-forge
openssl 1.0.2p hfa6e2cd_0
owslib 0.16.0 py36_0
packaging 18.0 py36_0
pandas 0.23.4 py36h830ac7b_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py36_1
panel 0.1.0a11 py_0 pyviz/label/dev
param 1.8.0a9 py_0 pyviz/label/dev
parambokeh 0.2.3 py_0 pyviz/label/dev
paramnb 2.0.4 py_0 pyviz/label/dev
parso 0.3.1 py36_0
partd 0.3.8 py36hc8e763b_0
patsy 0.5.0 py36_0
phantomjs 2.1.1 0 pyviz/label/dev
pickleshare 0.7.5 py36_0
pillow 5.2.0 py36_0 conda-forge
pip 18.1
pip 10.0.1 py36_0
pluggy 0.7.1 py36h28b3542_0
proj4 4.9.3 vc14_5 [vc14] conda-forge
prometheus_client 0.3.1 py36h28b3542_0
prompt_toolkit 1.0.15 py36h60b8f86_0
psutil 5.4.7 py36hfa6e2cd_0
psycopg2 2.7.5 py36h74b6da3_1002 conda-forge
py 1.6.0 py36_0
pyarrow 0.11.0 py36h6538335_0 conda-forge
pyasn1 0.4.4 py36h28b3542_0
pyasn1-modules 0.2.2 py36_0
pycodestyle 2.4.0 py36_0
pycparser 2.19 py36_0
pyct 0.4.5 py_0 pyviz/label/dev
pyct-core 0.4.5 py_0 pyviz/label/dev
pyepsg 0.3.2 py36_0
pyflakes 2.0.0 py36_0
pygments 2.2.0 py36hb010967_0
pylint 2.1.1 py36_0
pyopenssl 18.0.0 py36_0
pyparsing 2.2.1 py36_0
pyproj 1.9.5.1 py36_0
pyqt 5.9.2 py36h6538335_2
pysal 1.14.4.post1 py36_1
pyshp 1.2.12 py36_0
pysocks 1.6.8 py36_0
pytest 3.8.1 py36_0
python 3.6.6 hea74fb7_0
python-dateutil 2.7.3 py36_0
python-snappy 0.5.3 py36h6538335_0
pytz 2018.5 py36_0
pyviz 0.9.13a0 py_0 pyviz/label/dev
pyviz_comms 0.6.0 py_0 pyviz/label/dev
pywavelets 1.0.1 py36h452e1ab_0 conda-forge
pywin32 223 py36hfa6e2cd_1
pywinpty 0.5.4 py36_0
pyyaml 3.13 py36hfa6e2cd_0
pyzmq 17.1.2 py36hfa6e2cd_0
qt 5.9.6 vc14h62aca36_0
qtawesome 0.5.1 py36_1
qtconsole 4.4.1 py36_0
qtpy 1.5.1 py36_0
requests 2.19.1 py36_0
rise 5.3.0 py36_0 pyviz/label/dev
rope 0.11.0 py36_0
rtree 0.8.3 py36_0
scikit-image 0.14.0 py36h6538335_1
scikit-learn 0.20.0 py36heebcf9a_1
scipy 1.1.0 py36h4f6bf74_1
seaborn 0.9.0 py36_0
selenium 3.14.0 py36hfa6e2cd_0
send2trash 1.5.0 py36_0
service_identity 17.0.0 py36h28b3542_0
setuptools 40.4.3 py36_0
shapely 1.6.4 py36hc90234e_0
simplegeneric 0.8.1 py36_2
sip 4.19.8 py36h6538335_0
six 1.11.0 py36_1
snappy 1.1.7 vc14_1 [vc14] conda-forge
snowballstemmer 1.2.1 py36h763602f_0
sortedcontainers 2.0.5 py36_0
sphinx 1.8.1 py36_0
sphinxcontrib 1.0 py36_1
sphinxcontrib-websupport 1.1.0 py36_1
spyder 3.3.1 py36_1
spyder-kernels 0.2.6 py36_0
sqlalchemy 1.2.12 py36hfa6e2cd_1000 conda-forge
sqlite 3.25.2 hfa6e2cd_0
statsmodels 0.9.0 py36h452e1ab_0
streamz 0.4.0 py36_0
tblib 1.3.2 py36h30f5020_0
terminado 0.8.1 py36_1
testpath 0.3.1 py36h2698cfe_0
thrift 0.11.0 py36h6538335_0
tk 8.6.8 vc14_0 [vc14] conda-forge
toolz 0.9.0 py36_0
tornado 5.1.1 py36hfa6e2cd_0
traitlets 4.3.2 py36h096827d_0
twisted 18.7.0 py36hfa6e2cd_1
typed-ast 1.1.0 py36hfa6e2cd_0
urllib3 1.23 py36_0
vc 14 0 conda-forge
vs2015_runtime 14.15.26706 h3a45250_0
wcwidth 0.1.7 py36h3d5aa90_0
webencodings 0.5.1 py36_1
wheel 0.32.0 py36_0
widgetsnbextension 3.4.2 py36_0
win_inet_pton 1.0.1 py36_1
wincertstore 0.2 py36h7fe50ca_0
winpty 0.4.3 4
wrapt 1.10.11 py36hfa6e2cd_2
xarray 0.10.9 py36_0
xerces-c 3.2.1 vc14_0 [vc14] conda-forge
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 vc14_0 [vc14] conda-forge
zeromq 4.2.5 vc14_2 [vc14] conda-forge
zict 0.1.3 py36_0
zlib 1.2.11 vc14_0 [vc14] conda-forge
zope 1.0 py36_1
zope.interface 4.5.0 py36hfa6e2cd_0
We suggested people file issues on hv about:
While testing "Branching out: large data, geo data, custom controls" in 01_Workflow_Introduction.ipynb
from colorcet import fire
from holoviews.operation.datashader import datashade
from geoviews.tile_sources import EsriImagery
topts = dict(width=700, height=600, bgcolor='black', xaxis=None, yaxis=None, show_grid=False)
tiles = EsriImagery.clone(crs=crs.GOOGLE_MERCATOR).options(**topts)
dopts = dict(width=1000, height=600, x_sampling=0.5, y_sampling=0.5)
taxi = dd.read_parquet('../data/nyc_taxi_wide.parq').persist()
pts = hv.Points(taxi, ['pickup_x', 'pickup_y'])
trips = datashade(pts, cmap=fire, **dopts)
tiles * trips
Generated error:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-20-86d04e05f5aa> in <module>
5
6 topts = dict(width=700, height=600, bgcolor='black', xaxis=None, yaxis=None, show_grid=False)
----> 7 tiles = EsriImagery.clone(crs=crs.GOOGLE_MERCATOR).options(**topts)
8
9 dopts = dict(width=1000, height=600, x_sampling=0.5, y_sampling=0.5)
~\AppData\Local\Continuum\anaconda3\envs\pyviz-tutorial\lib\site-packages\holoviews\core\dimension.py in options(self, *args, **kwargs)
1452 expanded = {}
1453 else:
-> 1454 expanded = opts.expand_options(options, backend)
1455 return self.opts(expanded, backend, clone)
1456
~\AppData\Local\Continuum\anaconda3\envs\pyviz-tutorial\lib\site-packages\holoviews\util\__init__.py in expand_options(cls, options, backend)
166 if objtype not in backend_options:
167 raise ValueError('%s type not found, could not apply options.'
--> 168 % objtype)
169 obj_options = backend_options[objtype]
170 expanded[objspec] = {g: {} for g in obj_options.groups}
ValueError: WMTS type not found, could not apply options.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.