The PxrOSL Pattern node is a useful way to create and prototype OSL patterns from inside Maya.
...
Compile - Compile the current code to a .oso file for rendering (we needs this stel from the .osl form)
- When you select this option it will ask if you want to overwrite your file or save as an edit copy, the edit copy has an appended .edit in the name
- The .oso compiled file is required for rendering
Reload Source File - External edits to the file can be loaded from the saved/updated .osl file
...