Skip to content

How to expose environments created with Snakemake #1730

Description

In Snakemake you normally do something like this

rule my_rule:
    input:
        "some/input"
    output:
        "some/output"
    conda:
        "a/conda/env.yml"
    script:
        "some/script.py"

when the workflow is launched a new conda env will be created under .snakemake/conda/xxx where xxx is a hash created by snakemake (kind of a name)

Now I was hoping that doing this in .vscode/settings.json was enough,

{
    ....
    "python-envs.workspaceSearchPaths": [".snakemake/conda/**"],
    ....
}

But then when I e.g. open a jupyter notebook from VSCode I do not see any of those envs (neither as simple envs nor as kernels as all of them have also ipykernel installed)

Am I missing something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions