Skip to content

Instantly share code, notes, and snippets.

@lapis-zero09
Last active June 16, 2017 03:51
Show Gist options
  • Save lapis-zero09/1c3b81427609713b4dd4ce53cbb1fb54 to your computer and use it in GitHub Desktop.
Save lapis-zero09/1c3b81427609713b4dd4ce53cbb1fb54 to your computer and use it in GitHub Desktop.
python snippets
# -*- coding: utf_8 -*-
%matplotlib inline
import pandas as pd
import numpy as np
import scipy
import json
import collections
import matplotlib.pyplot as plt
from tqdm import tqdm_notebook as tqdm
from tqdm import trange
import seaborn as sns
import matplotlib.font_manager
from matplotlib.font_manager import FontProperties
from matplotlib.backends.backend_pdf import PdfPages
font_path = '/Library/Fonts/RictyDiminishedDiscord-Regular.ttf'
font_prop = matplotlib.font_manager.FontProperties(fname=font_path)
matplotlib.rcParams['font.family'] = font_prop.get_name()
from IPython.core.display import display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment