mamba-org / gator

Conda environment and package management extension from within Jupyter
Other
260 stars 30 forks source link

feat: create new environment using a remote mamba solver #141

Open mariobuikhuizen opened 3 years ago

mariobuikhuizen commented 3 years ago

Point quetz_url and quetz_solve_url in packages/common/src/components/CondaHints.ts to your Quetz server/solver.

On the Quetz server with the solver add:

[cors]
allow_origins=["*", "http://localhost"]

to config.toml

The code completion in the environment editor can be activated with CTRL-space.

github-actions[bot] commented 3 years ago

Binder :point_left: Launch a binder notebook on the branch _mariobuikhuizen/gator/mamba_hintsolve

mariobuikhuizen commented 3 years ago

https://user-images.githubusercontent.com/46192475/116255314-6a82cf00-a772-11eb-89ce-b43784f46371.mp4

fcollonval commented 3 years ago

Thanks a lot for this awesome feature @mariobuikhuizen

I'll try to review it in the coming days.

One design question from the demo (thanks for it); did you think about various design? For example, does it make sense to open a new mainwidgetarea containing the editor with the button as toolbar button? The idea would be to create/edit environment file in a standalone widget directly from the filebrowser in addition to the demo you are presenting.

mariobuikhuizen commented 3 years ago

That sounds like a good idea @fcollonval, I'll look into that.

mariobuikhuizen commented 3 years ago

Thanks @hbcarlos!

mariobuikhuizen commented 3 years ago

I discovered an issue with setting arguments with the standalone navigator with jupyter_server 1.9 (in 1.6.1 it works). Taking a look at that now.

mariobuikhuizen commented 3 years ago

I think it's an issue in jupyter-server: https://github.com/jupyter-server/jupyter_server/issues/550