try replacing this line with: `ipython nbconvert $<` (this dumps to HTML with the right file name by default).