jupyter notebook running kernel in different env

This is a tricky part of ipython / Jupyter. The set of kernels available are independent of what your virtualenv is when you start jupyter Notebook. The trick is setting up the the ipykernel package in the environment you want to identify itself uniquely to jupyter. From docs on multiple ipykernels, source activate ENVNAME pip … Read more

Deactivate a pipenv environment

To elaborate on Williams’ answer a bit more, the expected workflow is to enter the virtualenv using pipenv shell. When you activate the virtualenv that way, the console output now indicates to use exit: Spawning environment shell (/bin/zsh). Use ‘exit’ to leave. Trying to exit the virtualenv with deactivate will leave pipenv in a confused … Read more

How do I remove/delete a virtualenv?

“The only way I can remove it seems to be: sudo rm -rf venv“ That’s it! There is no command for deleting your virtual environment. Simply deactivate it and rid your application of its artifacts by recursively removing it. Note that this is the same regardless of what kind of virtual environment you are using. … Read more

tech