Compile the baseinteract.ipynb notebook into an analysis notebook for filename

def nbcompile(filename, html, basenb, agdir):
    """ Compile the baseinteract.ipynb notebook into an analysis notebook for filename """

    filename = os.path.abspath(filename)

    pc.nbcompile(os.path.dirname(filename), os.path.basename(filename), html=html, basenb=basenb, agdir=agdir)