Are there any tools available which allow you to live code in such a way?
I did a quick search and found this - http://stackoverflow.com/questions/9448215/tools-to-support-...
It seems quite out of date though.
http://witheve.com/
https://www.youtube.com/watch?v=KZjFVdU8VLI
http://witheve.com/