Skip to content

Instantly share code, notes, and snippets.

@rpetrenko
Last active May 31, 2019 01:17
Show Gist options
  • Save rpetrenko/f8061452844db49092aa6661bd9e6cd2 to your computer and use it in GitHub Desktop.
Save rpetrenko/f8061452844db49092aa6661bd9e6cd2 to your computer and use it in GitHub Desktop.
most commonly used imports for jupyter notebooks
# 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