No way to set remote API port
The python user docs here say that you should launch xstudio with the --port argument and then use XSTUDIO.connect_remote(host="127.0.0.1", port=<port-from-above>). However, --port only seems to set the port for a remote session and does not affect the port that the Remote API uses.
This is configured via the preferences files. It's not exposed in the application.
The defaults are in the share/preference
https://github.com/AcademySoftwareFoundation/xstudio/blob/main/share/preference/core_api.json
At some point we'll fully expose all of these inside the application.
Thanks, then we read the code correctly :). I guess the Python docs should be updated to remove/change the reference to --port since that does something different than described there.