公告
财富商城
积分规则
提问
发文
2019-03-07 18:56发布
放荡不羁爱自由
Is there a way to use pipenv with Jupyter notebook?
Or more specifically, with an atom nteract/hydrogen python 3 kernel?
Just tried the following with success.
In your project folder:
pipenv install ipykernel pipenv shell
This will bring up a terminal in your virtualenv like this:
(my-virtualenv-name) bash-4.4$
In that shell do:
python -m ipykernel install --user --name=my-virtualenv-name
Launch jupyter notebook:
jupyter notebook
In your notebook, Kernel -> Change Kernel. Your kernel should now be an option.
Source: IPythonNotebookVirtualenvs
Luis' answer works perfectly for jupyter notebooks.
But for hydrogen/atom specifically the recipe is:
launch atom from within the pipenv shell
> atom
Should be good to go!
最多设置5个标签!
Just tried the following with success.
In your project folder:
This will bring up a terminal in your virtualenv like this:
In that shell do:
Launch jupyter notebook:
In your notebook, Kernel -> Change Kernel. Your kernel should now be an option.
Source: IPythonNotebookVirtualenvs
Luis' answer works perfectly for jupyter notebooks.
But for hydrogen/atom specifically the recipe is:
launch atom from within the pipenv shell
Should be good to go!