eme*_*hex 52 python jupyter pipenv
有没有办法在Jupyter笔记本上使用pipenv?
或者更具体地说,使用原子nteract /氢python 3内核?
Lui*_*raz 109
只是尝试了以下成功.
在您的项目文件夹中:
pipenv install ipykernel
pipenv shell
Run Code Online (Sandbox Code Playgroud)
这将在你的virtualenv中建立一个终端,如下所示:
(my-virtualenv-name) bash-4.4$
Run Code Online (Sandbox Code Playgroud)
在那个shell中:
python -m ipykernel install --user --name=my-virtualenv-name
Run Code Online (Sandbox Code Playgroud)
推出jupyter笔记本:
jupyter notebook
Run Code Online (Sandbox Code Playgroud)
在你的笔记本中,Kernel - > Change Kernel.您的内核现在应该是一个选项.
资料来源:IPythonNotebookVirtualenvs
dah*_*ahe 15
在pipenv中安装并启动jupyter:
pipenv install jupyter
pipenv run jupyter notebook
Run Code Online (Sandbox Code Playgroud)
通过pipenv安装的任何其他软件包(例如pipenv install numpy
)也可用于jupyter笔记本会话。
归档时间: |
|
查看次数: |
18226 次 |
最近记录: |