Skip to content

Instantly share code, notes, and snippets.

@ZacBlanco
Last active March 21, 2017 07:17
Show Gist options
  • Save ZacBlanco/d9049f17f7aef07e3ce90670d165f69a to your computer and use it in GitHub Desktop.
Save ZacBlanco/d9049f17f7aef07e3ce90670d165f69a to your computer and use it in GitHub Desktop.
Aresty Data Analysis Using Jypter Python Notebook

Data Analysis with Jupyter and SQLite3 Database

First things you'll need to do is get your python3 and pip3 installed and working.

Step 1 - Install Jupyter

sudo pip3 install jupyter

This will install the jupyter notebook server. It's awesome. You'll see it work in a minute.

Step 2 - Clone the zacblanco/adac repo and cd your terminal into the directory

git clone https://github.com/zacblanco/adac.git
cd adac/

Step 3 - Download the ConsensusAnalysis.ipynb into your adac/ folder

The file is attached to this gist. Download it and save it within the repository.

wget https://gist.githubusercontent.com/ZacBlanco/d9049f17f7aef07e3ce90670d165f69a/raw/f08ca018fdb0140933f88efb52e69c1998d7fcfc/ConsensusAnalysis.ipynb

Step 4 - Run Jupyter

Now that because you installed jupyter earlier you should be able to run jupyter in the command line

  jupyer notebook

This will launch the jupyer notebook application on port 8888 and its kernels. It should open a new web browser tab. The tab will show your filesystem. Navigate into the adac/ folder if you're not already there and open the ConsensusAnalysis.ipynb file. You will now see the cell blocks and a couple functions to display graphs.

You can run the python cells using Ctrl-Enter

Mess around with the code and look at the peewee documentation on how to make database accesses to see more of the data.

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment