Python grasshopper

There is, and it’sthe same. You can override the required methods in SDK mode:

IsPreviewCapable
ClippingBox
DrawViewportWires
DrawViewportMeshes

A small example is here: GhPython add-on compiler with example (step 5).