Using Xonsh and Rye together? #5290
-
Does anyone use Xonsh with Rye? If I try installing Xonsh as a global tool with Rye has the option of using a different tool to manage the global Python version. I tried using Pyenv, and this option works and I can install xontribs. However, using Xonsh inside a Rye-managed project requires me to first cd out of the project, start xonsh, then cd back in, which can be a bit annoying. I have tried reading Install xonsh with package and environment management system, but I'm still a bit confused. Just curious if anyone else has tried using rye and xonsh together. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hey @jsquaredosquared! Thank you for using xonsh in new environments.
(I see that my messages has "Maintainer" label but the "maintainer" is the team during a couple of years. Don't treat my comment as a comment from owner.) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response 😃 . 1. Can't install xontribs when using xonsh installed with rye package managerAfter installing rye with rye install 'xonsh[full]'
xonsh Xontribs cannot be installed because of the following error: xpip install xontrib-jupyter
According to the Rye philosphy (fourth bullet point):
2. Can't start xonsh session if current directory is managed by rye but xonsh is installed globally or managed by another package managerIf you make a directory a Rye-managed project by running You would have to start Xonsh outside that directory before you can have access to it inside. Desired behaviourIdeally I would like to use Rye to manage Xonsh instead of having to go through something like pipx or pyenv. I wish I had the knowledge to create a xontrib to fix this, but I wouldn't know how to begin 🥲 . |
Beta Was this translation helpful? Give feedback.
-
Looks like the fix for case 1 solves case 2 also. Thanks :) |
Beta Was this translation helpful? Give feedback.
This works for me for case 1:
I had a short look but can't find how to install packages into the appropriate tool environment using rye.