Sample module import

Just a snippet on how to import my modules to use in IPython.


In [11]:
import os
import sys
nb_dir = os.path.split(os.getcwd())[0]

if nb_dir not in sys.path:
   sys.path.append(nb_dir)

from src import webscrapers

nb_dir


Out[11]:
'/media/sf_D_DRIVE/jupyter/tyler/billboard_hot_100_lyric_analysis'