iPython notebook -- Lightning talk exploring O'Reilly's Python books
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


How to view this online

Click here

How to install

Run this in a virtual environment to temporarily load the dependencies without having to make them a permanent addition to your libraries:

  1. install virtualenv, which allows running a virtual Python environment
  2. enter the virtual environment and install dependencies a. Need the Python dependencies b. For natural language toolkit (nltk) download 'stopwords' from the corpora
  3. exit the virtual environment


pip install virtualenv
virtualenv venv  # Create a directory to hold your virtual environment
source venv/bin/activate  # Add the venv path to your path
pip install -r requirements.txt  # Install the requirements in the venv
python -c "import nltk; nltk.download()"  # a gui: get nltk.corpus.stopwords
deactivate  # Remove the venv path from your path

How to run

The resources need only be installed in the virtual environment once. Then:

source venv/bin/activate
ipython notebook

To stop ipython, go to the main console ( and click the 'Shutdown' button next to your running notebook. Then type control-c in the console running ipython, and confirm with a 'y' that you actually want to stop.