with_demo_project function

Run code in temporary project