Last active
May 31, 2019 01:17
-
-
Save rpetrenko/f8061452844db49092aa6661bd9e6cd2 to your computer and use it in GitHub Desktop.
most commonly used imports for jupyter notebooks
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
# set width of cells to browser width | |
from IPython.core.display import display, HTML | |
display(HTML("<style>.container { width:100% !important; }</style>")) | |
# for drawing inline | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
from matplotlib import style | |
style.use('fivethirtyeight') | |
# nicer pictures with style | |
import seaborn as sns | |
sns.set(style='whitegrid',color_codes=True) | |
# don't cut off cell content | |
import pandas as pd | |
pd.set_option('display.max_colwidth', -1) | |
# ignore warnings | |
warnings.filterwarnings('ignore') | |
import numpy as np |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment