Last active
June 16, 2017 03:51
-
-
Save lapis-zero09/1c3b81427609713b4dd4ce53cbb1fb54 to your computer and use it in GitHub Desktop.
python snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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