Skip to content

Commit

Permalink
Merge pull request #1029 from plotly/choropleth-msg-conda
Browse files Browse the repository at this point in the history
importerror more clean for anaconda users in choropleth ff
  • Loading branch information
Kully committed Jun 6, 2018
2 parents 1de7b49 + 9bba556 commit 519e0ab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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.
Expand Down
16 changes: 12 additions & 4 deletions plotly/figure_factory/_county_choropleth.py
Expand Up @@ -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,
Expand Down

0 comments on commit 519e0ab

Please sign in to comment.