#!/usr/bin/python import os,sys,os.path,glob,re,markdown print markdown.markdown(""" Lecture Notes: Neural Computation and Self-Organization ----------------------- This is the lecture note and slide archive for Neural Computation and Self-Organization course. For the course pages themselves, please go to [ncso.iupr.com](http://ncso.iupr.com/). [All the lecture notes are available in PDF Format](ncso.pdf). This is a single, large PDF file that contains the content from the slides/worksheets, plus some additional text. Below are all the notebooks and corresponding slides from the lecture. _Note that slides and notes will get updated throughout the class_ """) print "" for nb in sorted(glob.glob("[0-9]*.ipynb")): with open(nb) as stream: text = stream.read() title = re.findall(r"Title:\s+([^\\\"]*)",text) base,_ = os.path.splitext(nb) if len(title)>0: title = title[0] else: title = base title = re.sub('^\d+-','',title) title = re.sub('[_-]+',' ',title) print "" print "".format(title) print "".format(nb) print "".format(base+"-slides.pdf") print "" print "
{}notebookslides
" print """ """