Skip to content

Commit 519e0ab

Browse files
authored
Merge pull request #1029 from plotly/choropleth-msg-conda
importerror more clean for anaconda users in choropleth ff
2 parents 1de7b49 + 9bba556 commit 519e0ab

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [2.7.1] - [UNRELEASED]
6+
### Updated
7+
- 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.
8+
59
## [2.7.0] - 2018-05-23
610
### Updated
711
- Updated `plotly.min.js` to version 1.38.0.

Diff for: plotly/figure_factory/_county_choropleth.py

+12-4
Original file line numberDiff line numberDiff line change
@@ -565,12 +565,20 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None,
565565
"geopandas, pyshp and shapely must be installed for this figure "
566566
"factory.\n\nRun the following commands to install the correct "
567567
"versions of the following modules:\n\n"
568-
"`pip install geopandas==0.3.0`\n"
569-
"`pip install pyshp==1.2.10`\n"
570-
"`pip install shapely==1.6.3`\n\n"
568+
"```\n"
569+
"pip install geopandas==0.3.0\n"
570+
"pip install pyshp==1.2.10\n"
571+
"pip install shapely==1.6.3\n"
572+
"```\n"
571573
"If you are using Windows, follow this post to properly "
572574
"install geopandas and dependencies:"
573-
"http://geoffboeing.com/2014/09/using-geopandas-windows/"
575+
"http://geoffboeing.com/2014/09/using-geopandas-windows/\n\n"
576+
"If you are using Anaconda, do not use PIP to install the "
577+
"packages above. Instead use conda to install them:\n\n"
578+
"```\n"
579+
"conda install plotly\n"
580+
"conda install geopandas\n"
581+
"```"
574582
)
575583

576584
df, df_state = _create_us_counties_df(st_to_state_name_dict,

0 commit comments

Comments
 (0)