Changing Default Template for New Python Script Editor


I would like to know if its possible to change the default template for a python script editor. I am asking specifically about the script editor in GHPython but if there is a way in the Rhino script editor that could be good to know as well. The script editor opens with an empty script (though it used to include a sample script in an earlier version). I then always include several standard imports (rhinoscriptsyntax, Rhino, math, custom script library, etc.) Can I set the default to already include these every time I open a GHPython component?


I have asked for this as well for the standard (non-Grashopper) Python editor…