0% found this document useful (0 votes)
47 views

Make Sure You Have Virtualenv Installed Create A Virtual: Ipython Kernel Install - User - Name .Venv

The document provides instructions for creating a Jupyter kernel within a conda environment, listing installed kernels, and deleting a kernel from a conda environment. It first instructs the user to create a Jupyter kernel in their conda environment. It then tells them to list the installed kernels to see the new one. Finally, it explains how to delete a kernel from the conda environment by name.

Uploaded by

aman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Make Sure You Have Virtualenv Installed Create A Virtual: Ipython Kernel Install - User - Name .Venv

The document provides instructions for creating a Jupyter kernel within a conda environment, listing installed kernels, and deleting a kernel from a conda environment. It first instructs the user to create a Jupyter kernel in their conda environment. It then tells them to list the installed kernels to see the new one. Finally, it explains how to delete a kernel from the conda environment by name.

Uploaded by

aman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Create a Jupyter kernel in the conda environment

ipython kernel install --user --name=.venv

2. List the Jupiter kernels installed in the conda

Jupyter kernelspec list

3. Delete Jupiter kernel in the conda environment

Sudo ipython kernelspec uninstall <env name>

Make sure you have


virtualenv installed
pip install virtualenv

Create a virtual
environment
Note: I like to use a . in front of my virtual
environments so the folder is hidden.
virtualenv .venv

Get inside the


environment
source .venv/bin/activate

or in shorthand
. .venv/bin/activate

You can verify quickly you are in the


environment by running which pythonwhich will
return the path of the python executable in the
environment if all went well
which python
> xxxxx/.venv/bin/python

Install a Jupyter kernel


This will install a kernel inside the environment,
to use to run in the Jupyter notebook there:
ipython kernel install --user --name=.venv
Run Jupyter, and select
the .venv kernel to run
the notebook
jupyter notebook

You might also like