Jupyter 在哪个 conda 环境中执行? [英] In which conda environment is Jupyter executing?
问题描述
我有 jupyter/anaconda/python3.5.
我如何知道我的 jupyter notebook 在哪个 conda 环境中运行?
如何从新的 conda 环境启动 jupyter?
问题一:找到当前notebook的conda环境
在 Jupyter Notebooks 中打开笔记本并查看屏幕的右上角.
例如,如果语言是 Python 并且它使用名为 env_name 的环境,则它应该说Python [env_name]".
<小时>问题 2:从不同的 conda 环境中启动 Jupyter Notebook
在运行 jupyter notebook
之前,使用 source activate
在终端中激活 conda 环境.这
您还可以从 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.
这篇关于Jupyter 在哪个 conda 环境中执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!