microsoft / microsoft/vscode-python-environments
How to expose environments created with Snakemake
- 主要语言
- TypeScript
- 星标
- 138
- 派生
- 62
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 35
描述
In [Snakemake](https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#target-rules) you normally do something like this
```python
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,
```json
{
....
"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?
贡献指南
调研方向
从 .vscode/settings.json 配置开始,将 python-envs.workspaceSearchPaths 设置为 .snakemake/conda/**,重现环境发现过程。打开 Jupyter notebook 时,检查生成的 Snakemake 环境是如何处理的,以及它们是否作为环境或 kernel 提供。匹配的环境显示在相关的 VS Code 选择器中即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 66/100