This is a bit off topic, but you might find what you need in the “turntable” command.
And I am not sure what you mean with INSTANTLY, do you mean CONTINUOUSLY?
Do you want the viewport to spin all the time, even when you are working on the Rhino file?
If you just want it to spin until you hit [escape] then you have to add
to the start, and then:
#check for esc press
break #get out of the loop
into the script, and put the script in a “Wile true”: loop.
The script will then look like this:
import rhinoscriptsyntax as rs
viewPort = rs.CurrentView()
rs.RotateView(viewPort, 0, 3.6)