Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Last active August 25, 2021 04:02
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save WillKoehrsen/e9f584287af4451bcd2029f75392b34e to your computer and use it in GitHub Desktop.
Save WillKoehrsen/e9f584287af4451bcd2029f75392b34e to your computer and use it in GitHub Desktop.
import pandas as pd
import numpy as np
# Pandas options
pd.options.display.max_columns = 30
pd.options.display.max_rows = 20
from IPython import get_ipython
ipython = get_ipython()
# If in ipython, load autoreload extension
if 'ipython' in globals():
print('\nWelcome to IPython!')
ipython.magic('load_ext autoreload')
ipython.magic('autoreload 2')
# Display all cell outputs in notebook
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = 'all'
# Visualization
import plotly.plotly as py
import plotly.graph_objs as go
from plotly.offline import iplot, init_notebook_mode
init_notebook_mode(connected=True)
import cufflinks as cf
cf.go_offline(connected=True)
cf.set_config_file(theme='pearl')
print('Your favorite libraries have been loaded.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment