How to display a line with interaction handles by python?

没太看懂你的问题, 不过可以看看这个👇或许对你有帮助

I don’t understand your question very well, but you can take a look at this👇 maybe it will help you…
How to rotate OrthogonalSlicesDeg in slices?, getPlaneIntersectionPoint