Personal list of cool Python related projects to play with. Projects are counted as long as they have a Python API regardless if the underlying code is written in another language.
- PySpark
- GraphLab Create
- Scikit Learn
- Tensorflow
- Cloud Dataflow
numpy==1.10.4 | |
astropy==0.4.2 | |
scipy==0.14.0 | |
pyyaml | |
starlink-pyast |
# Should update the base image ubuntu version to 16.04 LTS when it comes out | |
FROM ubuntu:14.04 | |
RUN echo "\n\n---------- Downloading and building all OS level tools-----\n\n" | |
RUN apt update | |
# -y flag bypasses all questions | |
RUN apt install -y \ | |
build-essential \ | |
software-properties-common \ | |
python-dev \ |
Unable to get python include path python executable: | |
/usr/bin/python | |
Using the following options: | |
CXX = g++ | |
FLAGS = | |
EXTRA_FLAGS = | |
LINKFLAGS = ['-fopenmp'] | |
DEBUG = True | |
EXTRA_DEBUG = False |
import gc | |
import os | |
import time | |
import numpy as np | |
import pandas as pd | |
from pyarrow.compat import guid | |
import pyarrow as pa | |
import pyarrow.parquet as pq | |
import snappy |
This post guides you through using an IPython notebook with a kernel running on a remote server / machine in the most painless way possible, even if your remote machine is behind a firewall.
This involves using your remote server / machine as a proxy. (Many thanks to Todd Gamblin for showing me how this life-changing trick works.) This trick is awesome in a sense that it reduces one layer of ssh
port that you have to specify.
With ssh remote forwarding method such as:
$ ssh -N -f -L $<LOCAL_PORT>:127.0.0.1:$<REMOTE_PORT> $REMOTE_HOST -vvv
you have to worry both about remote host actively listening to remote port and that the local port is available. With this proxy method, you can just treat yourself as sitting at the remote machine.
if [[ -z $CONDA_ENV ]]; then | |
echo "CONDA_ENV is not defined. Quitting installation script." | |
exit 1 | |
fi | |
if [[ $NERSC_HOST == "cori"* ]]; then | |
DIR=/global/common/cori/software/python/3.5-anaconda | |
module load python/3.5-anaconda | |
echo 'On Cori: echo finish loading python/3.5-anaconda' | |
# ------------- | |
# Author: Karen Ng <mailto:karen.yyng@gmail.com> | |
# dependency: wget | |
# usage: | |
# source THIS_SCRIPT.sh | |
# ------------- | |
# set per project settings | |
export CONDA_ENV=general | |
export INTEL_PYTHON_VERSION=2018.0.0 | |
export PY_VERSION=35 |