Python autocompletion for host-installed libraries when running on Flatpak
Since the jedi plugin runs in the flatpak, using the python interpreter in the flatpak, it will only provide autocompletion for libraries installed in the flatpak. This makes using Builder in flatpak not ideal for working on anything that uses 3rd party Python libraries.
I see two possible ways to solve this:
- Allow the flatpak'd Builder to access the host's Python site-packages directory
- Automatically create a Python virtualenv for each project, download the dependencies from the requirements.txt file (if present) and run the jedi plugin inside that virtualenv
I think the first option would be easier to implement, but I'm not sure it's the "cleanest", because then the available auto-complete option will be dependent on the host state.
Edited by Alexandre Franke