Yes, you need to execute the script in Rhino in any case, in order for Rhino to load RhinoCommon.
Maybe for future versions, @stevebaer could investigate if the ExecuteFile
-based method that is employed in the new GhPython is also applicable to the EditPythonScript editor.