Skip to content

Added requirement for pandas#14

Open
tobybatch wants to merge 3 commits into
fcappdev:masterfrom
neontribe:develop
Open

Added requirement for pandas#14
tobybatch wants to merge 3 commits into
fcappdev:masterfrom
neontribe:develop

Conversation

@tobybatch
Copy link
Copy Markdown

There is a dependency for pandas. Added it to the requirements.txt

@tobybatch
Copy link
Copy Markdown
Author

I've also added nltk corpora data download to the bootstrap.txt and the readme. Sorry my vi has stripped trailing spaces so there are a few too many line changes. It's lines 46 - 51 in the read me I added.

I'm not a python native so if there's a better way to do this then please let me know.

Copy link
Copy Markdown
Owner

@fcappdev fcappdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments regarding the bootstrap script.

Comment thread README.md

python - <<EOF
import nltk
nltk.download('all-corpora')
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add to bootstrap.sh the following lines:

python -m nltk.downloader punkt
python -m nltk.downloader stopwords
python -m nltk.downloader wordnet

rather than downloading the entire corpus. This will also set up the environment in one script rather than having to run separate statements.

Comment thread bootstrap.sh
conda install -c anaconda qt=4.8.6 -y
pip install -r requirements.txt -y No newline at end of file
pip install -r requirements.txt -y
python - <<EOF
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's replace this block with:

python -m nltk.downloader punkt
python -m nltk.downloader stopwords
python -m nltk.downloader wordnet

Comment thread requirements.txt
flask
flask-cors
matplotlib
pandas
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pandas is included with Anaconda. It should be installed with bash Anaconda3-4.3.0-Linux-x86_64.sh -b.

@fcappdev
Copy link
Copy Markdown
Owner

fcappdev commented Jun 6, 2017

Perhaps, since NumPy and SciPy are also included with Anaconda we should remove those from the requirements.txt, too. At the same time, I can update the MacOS install instructions to also install Anaconda in a virtual env via wget so that the installation instructions will be aligned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants