Half the time I find I go the other way. I develop in jupiter, and copy the function to a file once I get it working.