code: def nbcompile(filename, html, basenb, agdir):
      
  
      filename = os.path.abspath(filename)
  
      pc.nbcompile(os.path.dirname(filename), os.path.basename(filename), html=html, basenb=basenb, agdir=agdir)
docs: Compile the baseinteract.ipynb notebook into an analysis notebook for filename