Here are the suggested steps for this tip: Create a function. Ensure the function has an intuitive name. Document the function with docstring. (Ideally) Unit test the function. Save the function in a . py file (. py file is referred as module) Import module in Notebook to access the function. Use the function in Notebook. Oct 27, 2020