Skip to content

Commit 0c7904e

Browse files
committed
adjusting check_env for anaconda capitalization and ggplot requirement.
1 parent e608abb commit 0c7904e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_includes/scripts/check_env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def check_import(packagename):
1515
all_checks_passed = True
1616

1717
# Throw error if Anaconda is not default Python
18-
assert 'anaconda' in sys.prefix, ("Anaconda is NOT installed as your "
18+
assert 'anaconda' in sys.prefix.lower(), ("Anaconda is NOT installed as your "
1919
"default version of Python. Please "
2020
"make sure that is in accordance "
2121
"with the instructions provided.")
@@ -24,7 +24,7 @@ def check_import(packagename):
2424
assert sys.version_info.major >= 3, 'Please install Python 3!'
2525

2626
# Packages necessary for workshop
27-
packages = ['numpy', 'matplotlib', 'pandas', 'jupyter', 'ggplot']
27+
packages = ['numpy', 'matplotlib', 'pandas', 'jupyter', 'plotnine']
2828

2929
# Throw error if any of the necessary packages is not installed
3030
for p in packages:

0 commit comments

Comments
 (0)