Skip to content

Instantly share code, notes, and snippets.

@elyase
elyase / gist:5152586
Last active December 14, 2015 21:40
Numpy Challenge Benchmarks
{
"metadata": {
"name": "NumPy Programming Challenge"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{

Deploy Python app using Pandas on Heroku

2012-09-08

This document explains how to deploy a Python app that uses the Pandas library on Heroku.

Heroku builds Numpy (one of Pandas' requirements) fine. However, when trying to deploy an app with both numpy and pandas in its requirements.txt file (or even just pandas), for some reason it fails

@elyase
elyase / gist:5079601
Last active December 14, 2015 11:29
iPython notebook for QSTK Tutorial 1 see at: http://nbviewer.ipython.org/5079601
{
"metadata": {
"name": "Tutorial1"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@elyase
elyase / how_to.md
Last active December 14, 2015 04:49

This should automatically install QSTK with all dependencies in a self contained Python folder in a Mac(tested on Mountain Lion 10.8.2). In a terminal run:

curl -L https://gist.github.com/elyase/5031291/raw/74d44cbb4c7af2cc98111dc8e4afa135627a49e7/install_QSTK.sh | bash

Whenever you want to start working with QSTK, run in a terminal:

pythonbrew venv use QSTK

or simply use the alias:

@elyase
elyase / output
Created May 5, 2012 20:00
boost install fails
This file has been truncated, but you can view the full file.
Last login: Sat May 5 19:00:44 on ttys000
imac:~ yaser$ brew uninstall boost
Error: No such keg: /usr/local/Cellar/boost
imac:~ yaser$ brew install boost -v
==> Downloading http://downloads.sourceforge.net/project/boost/boost/1.49.0/boost_1_49_0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/boost-1.49.0.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/boost-1.49.0.tar.bz2
==> ./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.49.0 --libdir=/usr/local/Cellar/boost/1.49.0/lib
./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.49.0 --libdir=/usr/local/Cellar/boost/1.49.0/lib
-n Building Boost.Build engine with toolset darwin...