Skip to content

Commit

Permalink
Merge branch 'master' into dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 10, 2015
2 parents 69fe67f + 760f515 commit 9ba708c
Show file tree
Hide file tree
Showing 48 changed files with 2,719 additions and 1,219 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -26,7 +26,7 @@ install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nose numpy=1.9.3 bokeh pandas scipy jupyter ipython matplotlib param
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nose numpy=1.9.1 matplotlib bokeh pandas scipy jupyter ipython param freetype=2.5.2
- source activate test-environment
- python setup.py install
- pip install git+git://github.com/ioam/param.git
Expand Down
26 changes: 1 addition & 25 deletions doc/Tutorials/Pandas_Conversion.ipynb
Expand Up @@ -140,24 +140,6 @@
"HTML(df.reset_index().to_html())"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For now though, the a, b, and c columns is all we'll need. To confirm the dataframe was converted correctly we can call the `.info` method on Table:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"example_table.info"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -267,13 +249,7 @@
},
"outputs": [],
"source": [
"from io import BytesIO\n",
"try:\n",
" from urllib2 import urlopen, Request\n",
"except:\n",
" from urllib.request import urlopen, Request\n",
"macro_csv=BytesIO(urlopen('http://ioam.github.com/holoviews/Tutorials/macro.csv').read())\n",
"macro_df = pd.read_csv(macro_csv, '\\t')"
"macro_df = pd.read_csv('http://ioam.github.com/holoviews/Tutorials/macro.csv', '\\t')"
]
},
{
Expand Down
11 changes: 5 additions & 6 deletions doc/Tutorials/Sampling_Data.ipynb
Expand Up @@ -274,7 +274,7 @@
"outputs": [],
"source": [
"raster = hv.Raster(np.random.rand(3, 3))\n",
"raster + hv.Points(raster.table().keys())[-1:3, -1:3] + raster.table()"
"raster + hv.Points(raster)[-1:3, -1:3] + raster.table()"
]
},
{
Expand Down Expand Up @@ -316,7 +316,7 @@
"source": [
"extents = (0, 0, 3, 3)\n",
"img = hv.Image(np.random.rand(3, 3), bounds=extents)\n",
"img + hv.Points(img.table().keys(), extents=extents) + img.table()"
"img + hv.Points(img, extents=extents) + img.table()"
]
},
{
Expand Down Expand Up @@ -462,7 +462,7 @@
"extents = (0, 0, 10, 10)\n",
"img = hv.Image(np.random.rand(10, 10), bounds=extents)\n",
"img_coords = hv.Points(img.table(), extents=extents)\n",
"img + img * img_coords * hv.Points([img.closest((5,5))])(style=dict(color='r')) + img.sample([(5, 5)])"
"img + img * img_coords * hv.Points([img.closest([(5,5)])])(style=dict(color='r')) + img.sample([(5, 5)])"
]
},
{
Expand All @@ -481,7 +481,7 @@
"outputs": [],
"source": [
"sampled = img.sample(y=5)\n",
"img + img * img_coords * hv.Points(zip(sampled.table().keys(), [img.closest((5,5))[1]]*10)) + sampled"
"img + img * img_coords * hv.Points(zip(sampled['x'], [img.closest(y=5)]*10)) + sampled"
]
},
{
Expand Down Expand Up @@ -610,8 +610,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"scrolled": true
"collapsed": false
},
"outputs": [],
"source": [
Expand Down
2 changes: 1 addition & 1 deletion doc/Tutorials/Showcase.ipynb
Expand Up @@ -246,7 +246,7 @@
"source": [
"sample_pos = (0,0.25)\n",
"annotated = circular_wave * hv.Points([sample_pos])\n",
"sample = circular_wave.sample(samples=[sample_pos]).reindex().to.curve('Phase', 'Amplitude')\n",
"sample = circular_wave.sample(samples=[sample_pos]).to.curve('Phase', 'Amplitude', ['Frequency'])\n",
"annotated + sample"
]
},
Expand Down
2 changes: 1 addition & 1 deletion doc/reference_data
Submodule reference_data updated 78 files
+ holoviews_Elements_py2/data_029.pkl
+ holoviews_Elements_py2/data_030.pkl
+1 −1 holoviews_Elements_py2/display_022.html
+1 −1 holoviews_Elements_py2/display_030.html
+1 −1 holoviews_Elements_py2/display_031.html
+ holoviews_Elements_py3/data_029.pkl
+ holoviews_Elements_py3/data_030.pkl
+1 −1 holoviews_Elements_py3/display_022.html
+1 −1 holoviews_Elements_py3/display_030.html
+1 −1 holoviews_Elements_py3/display_031.html
+1 −1 holoviews_Exploring_Data_py2/display_002.html
+1 −1 holoviews_Exploring_Data_py2/display_010.html
+1 −1 holoviews_Exploring_Data_py3/display_002.html
+1 −1 holoviews_Exploring_Data_py3/display_010.html
+1 −1 holoviews_Options_py2/display_001.html
+1 −1 holoviews_Options_py3/display_001.html
+ holoviews_Pandas_Conversion_py2/data_008.pkl
+ holoviews_Pandas_Conversion_py2/data_009.pkl
+1 −1 holoviews_Pandas_Conversion_py2/display_001.html
+1 −1 holoviews_Pandas_Conversion_py2/display_002.html
+1 −1 holoviews_Pandas_Conversion_py2/display_003.html
+1 −1 holoviews_Pandas_Conversion_py2/display_004.html
+1 −1 holoviews_Pandas_Conversion_py2/display_005.html
+1 −1 holoviews_Pandas_Conversion_py2/display_006.html
+1 −1 holoviews_Pandas_Conversion_py2/display_007.html
+1 −1 holoviews_Pandas_Conversion_py2/display_008.html
+1 −1 holoviews_Pandas_Conversion_py2/display_009.html
+1 −1 holoviews_Pandas_Conversion_py2/display_010.html
+1 −1 holoviews_Pandas_Conversion_py2/display_011.html
+1 −1 holoviews_Pandas_Conversion_py2/display_012.html
+1 −1 holoviews_Pandas_Conversion_py2/display_013.html
+0 −1 holoviews_Pandas_Conversion_py2/display_014.html
+ holoviews_Pandas_Conversion_py3/data_008.pkl
+ holoviews_Pandas_Conversion_py3/data_009.pkl
+1 −1 holoviews_Pandas_Conversion_py3/display_001.html
+1 −1 holoviews_Pandas_Conversion_py3/display_002.html
+1 −1 holoviews_Pandas_Conversion_py3/display_003.html
+1 −1 holoviews_Pandas_Conversion_py3/display_004.html
+1 −1 holoviews_Pandas_Conversion_py3/display_005.html
+1 −1 holoviews_Pandas_Conversion_py3/display_006.html
+1 −1 holoviews_Pandas_Conversion_py3/display_007.html
+1 −1 holoviews_Pandas_Conversion_py3/display_008.html
+1 −1 holoviews_Pandas_Conversion_py3/display_009.html
+1 −1 holoviews_Pandas_Conversion_py3/display_010.html
+1 −1 holoviews_Pandas_Conversion_py3/display_011.html
+1 −1 holoviews_Pandas_Conversion_py3/display_012.html
+1 −1 holoviews_Pandas_Conversion_py3/display_013.html
+0 −1 holoviews_Pandas_Conversion_py3/display_014.html
+ holoviews_Sampling_Data_py2/data_007.pkl
+ holoviews_Sampling_Data_py2/data_008.pkl
+ holoviews_Sampling_Data_py2/data_011.pkl
+ holoviews_Sampling_Data_py2/data_013.pkl
+ holoviews_Sampling_Data_py2/data_014.pkl
+ holoviews_Sampling_Data_py2/data_015.pkl
+ holoviews_Sampling_Data_py2/data_016.pkl
+ holoviews_Sampling_Data_py2/data_017.pkl
+ holoviews_Sampling_Data_py2/data_018.pkl
+1 −1 holoviews_Sampling_Data_py2/display_006.html
+1 −1 holoviews_Sampling_Data_py2/display_009.html
+1 −1 holoviews_Sampling_Data_py2/display_011.html
+1 −1 holoviews_Sampling_Data_py2/display_014.html
+1 −1 holoviews_Sampling_Data_py2/display_015.html
+1 −1 holoviews_Sampling_Data_py2/display_016.html
+ holoviews_Sampling_Data_py3/data_007.pkl
+ holoviews_Sampling_Data_py3/data_008.pkl
+ holoviews_Sampling_Data_py3/data_011.pkl
+ holoviews_Sampling_Data_py3/data_013.pkl
+ holoviews_Sampling_Data_py3/data_014.pkl
+ holoviews_Sampling_Data_py3/data_015.pkl
+ holoviews_Sampling_Data_py3/data_016.pkl
+ holoviews_Sampling_Data_py3/data_017.pkl
+ holoviews_Sampling_Data_py3/data_018.pkl
+1 −1 holoviews_Sampling_Data_py3/display_006.html
+1 −1 holoviews_Sampling_Data_py3/display_009.html
+1 −1 holoviews_Sampling_Data_py3/display_011.html
+1 −1 holoviews_Sampling_Data_py3/display_014.html
+1 −1 holoviews_Sampling_Data_py3/display_015.html
+1 −1 holoviews_Sampling_Data_py3/display_016.html
1 change: 1 addition & 0 deletions holoviews/core/__init__.py
@@ -1,4 +1,5 @@
from .boundingregion import * # pyflakes:ignore (API import)
from .data import * # pyflakes:ignore (API import)
from .dimension import * # pyflakes:ignore (API import)
from .element import * # pyflakes:ignore (API import)
from .layout import * # pyflakes:ignore (API import)
Expand Down

0 comments on commit 9ba708c

Please sign in to comment.