I’ve been compiling GHpython components as instructed in the following post by @piac:
with particular interest in accessing the DrawViewport functionalities for custom display, similar to the C# component.
When I run the script in procedural mode it works like a charm, but when I compile it the resulting component has its preview disabled (grayed out) and there is no way to switch the preview on. I attach a screenshot and the file with the script.