boltex / leointeg

Leo Editor Integration with VS Code
https://marketplace.visualstudio.com/items?itemName=boltex.leointeg
MIT License
76 stars 6 forks source link

LeoInteg should support connecting to Leo running in a venv #299

Open ranvik14 opened 10 months ago

ranvik14 commented 10 months ago

The problem was described in this message on Leo's google group:

In a follow-up msg in the same thread a possible solution was described by TBP - See

@boltex : For simple access here's the text of the proposed solution:

"""I suggest that Felix could find a way to have LeoInteg open a venv and launch Python from that. This would require a new setting that would take priority over the current setting for the Python executable. Leo integ would have to run the venv activation script and launch the bridge in that environment. I don't know how to do that but I imagine it's possible. Once launched, LeoInteg would not need to know about the venv any more to communicate with the bridge."""

In a follow-up comment I'll describe how I am using pip & venv to install Leo from PyPI.

ranvik14 commented 10 months ago

In all my Linux VMs - either Debian or Fedora based - I'm always using Python's virtual environments in the same way:

For '~/PyVE/PyPI' I use the following ~ activation ~ steps:

boltex commented 7 months ago

@ranvik14 Thank you for entering this issue.

I'll take a deeper look into it right after I finish LeoJS 1.0.