在氢中为原子添加新的Conda Env [英] Adding New Conda Env to Hydrogen for Atom

查看:97
本文介绍了在氢中为原子添加新的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问题的链接,其中注释为已回答.

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.

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

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