Skip to content

Instantly share code, notes, and snippets.

@traviskaufman
Last active June 16, 2018 21:41
Show Gist options
  • Select an option

  • Save traviskaufman/5de284000c5ae86bc56ad2afb7eab479 to your computer and use it in GitHub Desktop.

Select an option

Save traviskaufman/5de284000c5ae86bc56ad2afb7eab479 to your computer and use it in GitHub Desktop.
# ipython-utils/researchenv/__init__.py
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from IPython.core.interactiveshell import InteractiveShell
def load_ipython_extension(ipython: InteractiveShell):
print('%matplotlib inline')
print('import numpy as np')
print('import pandas as pd')
print('import matplotlib.pyplot as plt')
print('import seaborn as sns')
ipython.enable_matplotlib(gui='inline')
ipython.push({
'np': np,
'pd': pd,
'plt': plt,
'sns': sns,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment