Skip to content

Instantly share code, notes, and snippets.

@anmolgarg
Last active December 2, 2015 00:23
Show Gist options
  • Save anmolgarg/b92ae9985efc6543f0cc to your computer and use it in GitHub Desktop.
Save anmolgarg/b92ae9985efc6543f0cc to your computer and use it in GitHub Desktop.
# these things are run on IPython start
# Import some things I like to have
import os
from pprint import pprint
import sys
import shutil
import scipy.stats as stats
# Set some pandas options
import pandas as pd
pd.set_option('display.max_columns', 500)
pd.set_option('display.max_rows', 100)
# Set default plotting styles
import matplotlib.pyplot as plt
import plotly.plotly as py
import seaborn as sns
plt.style.use('fivethirtyeight')
sns.set_style('whitegrid')
%pylab inline
# Create magic
%alias_magic t timeit
# -r<R>: repeat the loop iteration <R> times and take the best result. Default: 3
# -n<N>: execute the given statement <N> times in a loop. Default: a fitting value is chosen
%autosave 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment