在哪个conda环境中Jupyter正在执行? [英] In which conda environment is Jupyter executing?
问题描述
我有jupyter / anaconda / python3.5。
-
我怎么知道哪个conda环境是我的jupyter笔记本运行上?
-
如何从新的conda环境启动jupyter?
问题1:查找当前笔记本的conda环境
在Jupyter笔记本中打开笔记本并查看屏幕右上角。
例如,如果语言是Python并使用名为env_name的环境,则应该说Python [env_name]。
问题2:从不同的conda环境中启动Jupyter Notebook
使用 source activate< environment激活终端中的conda环境在运行
。此 jupyter notebook
之前,请输入名称>
您还可以在Jupyter Notebook中创建新环境(主屏幕,Conda选项卡,然后单击加号)。
和您可以在任何您想要的环境中创建笔记本。选择主屏幕上的文件选项卡,然后单击新建下拉菜单,在该菜单中从列表中选择一个Python环境。
I have jupyter/anaconda/python3.5.
How can I know which conda environment is my jupyter notebook running on?
How can I launch jupyter from a new conda environment?
Question 1: Find the current notebook's conda environment
Open the notebook in Jupyter Notebooks and look in the upper right corner of the screen.
It should say, for example, "Python [env_name]" if the language is Python and it's using an environment called env_name.
Question 2: Start Jupyter Notebook from within a different conda environment
Activate a conda environment in your terminal using source activate <environment name>
before you run jupyter notebook
. This sets the default environment for Jupyter Notebooks. Otherwise, the [Root] environment is the default.
You can also create new environments from within Jupyter Notebook (home screen, Conda tab, and then click the plus sign).
And you can create a notebook in any environment you want. Select the "Files" tab on the home screen and click the "New" dropdown menu, and in that menu select a Python environment from the list.
这篇关于在哪个conda环境中Jupyter正在执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!