Jupyter and Python Package Tests

Let's see if everything works, shall we!? :D

Run the following following cells by either hitting the run cell button above (looks like a play button), or by the shortcut shift + enter.

If you installed all of these packages, you'll see something like the following print out for each:

<module 'numpy' from '/Users/mollie/.pyenv/versions/3.6.0/lib/python3.6/site-packages/numpy/__init__.py'>.

If it is not installed, you will get an error instead.


In [1]:
import numpy
numpy


Out[1]:
<module 'numpy' from '/home/nanounanue/.pyenv/versions/3.7.3/envs/hitchhickers-guide/lib/python3.7/site-packages/numpy/__init__.py'>

In [2]:
import scipy
scipy


Out[2]:
<module 'scipy' from '/home/nanounanue/.pyenv/versions/3.7.3/envs/hitchhickers-guide/lib/python3.7/site-packages/scipy/__init__.py'>

In [3]:
import pandas
pandas


Out[3]:
<module 'pandas' from '/home/nanounanue/.pyenv/versions/3.7.3/envs/hitchhickers-guide/lib/python3.7/site-packages/pandas/__init__.py'>

In [4]:
import matplotlib
matplotlib


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-66c3e516c3de> in <module>
----> 1 import matplotlib
      2 matplotlib

ModuleNotFoundError: No module named 'matplotlib'

In [5]:
import seaborn
seaborn


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-5-1abcb3832fd7> in <module>
----> 1 import seaborn
      2 seaborn

ModuleNotFoundError: No module named 'seaborn'

In [6]:
import psycopg2
psycopg2


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-6-6bc7baf9e7bc> in <module>
----> 1 import psycopg2
      2 psycopg2

ModuleNotFoundError: No module named 'psycopg2'

In [7]:
import statsmodels
statsmodels


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-0e2d003a15ca> in <module>
----> 1 import statsmodels
      2 statsmodels

ModuleNotFoundError: No module named 'statsmodels'

In [8]:
import csvkit
csvkit


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-8-ae9ba71511c7> in <module>
----> 1 import csvkit
      2 csvkit

ModuleNotFoundError: No module named 'csvkit'

Congrats! You're all set up! :D


In [ ]: