Last active
June 16, 2018 21:41
-
-
Save traviskaufman/5de284000c5ae86bc56ad2afb7eab479 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # 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