from IPython.core.display import display, HTML
# Expand to 90% of screen width
display(HTML("<style>.container { width:90% !important; }</style>"))
import pandas as pd
pd.set_option('display.max_rows', 100)
import sys
custom_pkg_src = '/path/to/custom-pkg/'
if not custom_pkg_src in sys.path:
sys.path.insert(0, custom_pkg_src)
import sys
site_packages_src = '/home/USERNAME/anaconda3/envs/ENVNAME/lib/python3.6/site-packages/'
if not site_packages_src in sys.path:
sys.path.insert(0, site_packages_src)
import matplotlib
%matplotlib notebook
from pprint import pprint
import pickle
import glob
import os
import datetime
import sys
import pandas as pd
import numpy as np
import scipy
import matplotlib.pyplot as plt
def describe(obj):
from pprint as pprint
print(type(obj))
# If List
if isinstance(obj, list):
print(len(obj))
# If Dict
if isinstance(obj, dict):
print(len(obj.keys()))
if len(obj.keys()) < 20:
pprint(obj.keys())
#!/bin/bash
export PATH=/path/to/anaconda/bin:$PATH
conda create -n py36 -y python=3.6.3
source activate py36
ipython kernel install --user --name py36