Skip to content
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

How to activate a specific conda environment within the runner? #298

Open
mbilyanov opened this issue May 22, 2020 · 1 comment
Open

How to activate a specific conda environment within the runner? #298

mbilyanov opened this issue May 22, 2020 · 1 comment

Comments

@mbilyanov
Copy link

mbilyanov commented May 22, 2020

Hi,

When inside tmux, the new pane invoked by vim-dispatch will use a default conda environment. Anyone using vim-dispatch inside a conda environment? Is there a way to activate a specific conda environment in the process started by vim-dispatch?

I have tried to call conda inside the command being passed to Start and Dispatch but with no success.

:Start conda activate myEnv && bokeh serve --show my_app

But conda throws bunch of complaints about the shell not being compatible etc.

Any ideas?

@mbilyanov
Copy link
Author

I'm aware this might be a conda issue. Just wondering if someone attempted the similar thing I'm attempting. I tried this:

tmux new-window -n:mywindow 'echo "__START__"; conda activate py37; echo "___END___"; sleep 5'

And I can confirm this is producing the same issue.

__START__

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.


___END___

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant