-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] - Improve experience of developing packages on Nebari #411
Comments
Short term: Document the existing workflows for developers Long term: Discuss improvements to workflow, for example improving conda-store CLI |
Update: Seems like mypkg could only be installed this way in 1 environment though. If you try to do this in a 2nd environment, then it'll "uninstall" the first one.
|
This is effectively bypassing the guardrails on Installing a dev package in this way will place it in your The virual environment outlined above is a much safer solution. |
I have tested the One thing that wasn't mention there was usage inside of VSCode. From VSCode I'm able to see the virtual environment itself as an environment option via the python plugin. Going this route you can just use the venv directly and dont have to worry with any |
Feature description
Now that we have disabled local pip installs, software devs who are developing packages do not have an easy path for interactive testing.
Resposted summary by @dharhas :
In the new release of Nebari we are disabling direct pip installs. There are a few reasons for this:
.local
folder in your home directory. Since this folder is at the beginning of your python path this means a bad or conflicting packages in.local
will supercede all other versions and can potentially break every python environment you use on the platform. Sometimes it can also cause you to not be able to launch a server at all.In the new release pip will ONLY work within a pip virtual env (i.e. a venv)
Recommended Approach for pip packages in general:
environment.yaml
for your environment via the built in environment manager (conda-store)pip
section of the yaml.Workaround if you really must use pip:
myenv
conda env list
dharhas-myenv
python -m venv .venv_myenv
source .venv_myenv/bin/activate
pip install -r requirements.txt
Usage from terminal:
conda activate dharhas@quansight.com-myenv
python -m venv .venv_myenv
Usage from Jupyter:
dharhas@quansight.com-myenv
kernelI've tested this and it seems to work but I do not know how robust using this mechanism is from Jupyter.
@pavithraes - While I haven't tested this, I'd assume you can have a pip editable install with an active venv
@dharhas You can.
--system-site-packages
Value and/or benefit
The workflow of software devs working on Nebari becomes easy again.
Anything else?
No response
The text was updated successfully, but these errors were encountered: