vineetbansal / wbi

0 stars 0 forks source link

Running xpra in Python #14

Open vineetbansal opened 11 months ago

vineetbansal commented 11 months ago

Once we know how to run xpra from the command line, we need to see how to run it in Python. Once the xpra library is installed successfully, we should be able to do something like:

from xpra.client import XpraClient
client = XpraClient()
client.connect('puid@della.princeton.edu')

and try to replicate the remote napari experience from there.

Once this works, we can perhaps create a script to run this with minimal configuration, in preparation for introduction of it as a wbi command.

Installation of xpra as a python package might be tricky (conda install -c conda-forge .. might work). If this turns into a big headache, we can postpone this issue. Also, the code snippet above might be totally made up by ChatGPT. I don't actually find any official documentation on how to use xpra from python.

Just getting the module to install should get us prepared for the next step.