diff --git a/CHANGELOG.md b/CHANGELOG.md index a571bd8806..f938042aa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [2.7.1] - [UNRELEASED] +### Updated +- error message for `plotly.figure_factory.create_choropleth` is now helpful to Anaconda users who do not have the correct modules installed for the County Choropleth figure factory. + ## [2.7.0] - 2018-05-23 ### Updated - Updated `plotly.min.js` to version 1.38.0. diff --git a/plotly/figure_factory/_county_choropleth.py b/plotly/figure_factory/_county_choropleth.py index 823db37348..8ee9fef7c2 100644 --- a/plotly/figure_factory/_county_choropleth.py +++ b/plotly/figure_factory/_county_choropleth.py @@ -565,12 +565,20 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, "geopandas, pyshp and shapely must be installed for this figure " "factory.\n\nRun the following commands to install the correct " "versions of the following modules:\n\n" - "`pip install geopandas==0.3.0`\n" - "`pip install pyshp==1.2.10`\n" - "`pip install shapely==1.6.3`\n\n" + "```\n" + "pip install geopandas==0.3.0\n" + "pip install pyshp==1.2.10\n" + "pip install shapely==1.6.3\n" + "```\n" "If you are using Windows, follow this post to properly " "install geopandas and dependencies:" - "http://geoffboeing.com/2014/09/using-geopandas-windows/" + "http://geoffboeing.com/2014/09/using-geopandas-windows/\n\n" + "If you are using Anaconda, do not use PIP to install the " + "packages above. Instead use conda to install them:\n\n" + "```\n" + "conda install plotly\n" + "conda install geopandas\n" + "```" ) df, df_state = _create_us_counties_df(st_to_state_name_dict,