为 Atom 向氢添加新的 Conda Env [英] Adding New Conda Env to Hydrogen for Atom

查看:27
本文介绍了为 Atom 向氢添加新的 Conda Env的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的工作流程中使用了许多 conda 环境,并且喜欢在探索对象时将氢包用于 Atom 编辑器.但是我总是忘记如何将新的 jupyter 内核添加到新环境中,即使它只有两行代码.

I work with many conda environments in my workflow and like to use the hydrogen package for the Atom Editor when I am exploring objects. However I always forget how to add a new jupyter kernel to the new environments even though it is only two lines of code.

那几行代码是什么?

推荐答案

这里是 github issue 的链接,评论是 已回答.

Here is the link to the github issue where the comment is answered.

要在终端中运行的两行代码是:

The two lines of code to be run in your terminal are these:

source activate YourEnvNameHeRE
python -m ipykernel install --user --name YourEnvNameHeRE

运行这两行并重启 Atom 后,现在会提示您选择使用 Hydrogen 评估代码时使用的环境.

After you run these two lines and restart Atom, you will now be prompted to choose which environment you use when evaluating code using Hydrogen.

这篇关于为 Atom 向氢添加新的 Conda Env的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆