When I ssh -X to a server, I will be assigned a $DISPLAY value, usually localhost:x.0 where x is the lowest number unused by all the users starting from 10. (e.g., if no other user uses $DISPLAY, then it is 10. If some user is already using 10, then it will be 11, etc)
Now my question is: is there a way to specify a number for x when doing ssh -X, like 100.
My purpose is to have a detached program keeping running on the server that always use localhost:100.0 as its display. Then even if I lost the X connection to the server, I can re-login and still establish a connection to localhost:100.0 without worrying about other users occupying the same port during my disconnection. Choose a number as big as 100 can avoid most of the possibilities that it get occupied, comparing to the default 10.
jupyter lab, I have no much way to modify it.xserveris only needed when I usematplotlibto plot something. When get disconnected, the displayed figures will go away, but after reconnection I can replot.