Dear Roland, nazca teams
thanks for your reply and for the improvement.
Better is to place all the stubs you may want to visualize inside the cell during cell creation, as would be the normal situation. Then use the new cell method hide_stub(), which will exclude stubs and their annotation from export; The hide_stub method will be allowed to operate on closed cells.
This looks exactly as I was thinking. I am looking forward to use it.