I'm working on a Kate plugin written in Python that generates a large amount of text too big to display it in a popup. So I want Kate to open a new unnamed file and display the text in it.
Is there a way to do this in Python (apart from running a subprocess echo text | kate --stdin
)?