Skip to content

Instantly share code, notes, and snippets.

@bmmalone
Last active October 10, 2017 09:01
Show Gist options
  • Save bmmalone/f440220c057b568f18d7779915fdd718 to your computer and use it in GitHub Desktop.
Save bmmalone/f440220c057b568f18d7779915fdd718 to your computer and use it in GitHub Desktop.
Standard jupyter notebook header
%load_ext autoreload
%autoreload 2
%matplotlib inline
from argparse import Namespace
import misc.logging_utils as logging_utils
args = Namespace()
logger = logging_utils.get_ipython_logger()
# in case we distribute to a dask cluster
from joblib import parallel_backend
import distributed.joblib
import misc.dask_utils as dask_utils
dask_utils.add_dask_values_to_args(args, cluster_location="LOCAL", num_cpus=3, num_threads_per_cpu=1)
client, cluster = dask_utils.connect(args)
# standard pydata imports
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns; sns.set(style='white', color_codes=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment