User Portlet User Portlet

Discussions
This makes sense, however my function is about a page long, and I would like to be able to separately edit and run parts of it. Is there a way to define a function over multiple cells?