Dynamically generate the IPython notebook for the test.

Tested with iptest2 and iptest3