Skip to content

Instantly share code, notes, and snippets.

@Niraj-Fonseka
Created May 21, 2022 19:19
Show Gist options
  • Save Niraj-Fonseka/80c8c4497d5650c52646052213e6eb90 to your computer and use it in GitHub Desktop.
Save Niraj-Fonseka/80c8c4497d5650c52646052213e6eb90 to your computer and use it in GitHub Desktop.
adding custom python kernels for running jupyter notebooks on vscode
  • Create a new virtual env

    • virtualenv venv
  • Activate it

    • vtualenv venv/bin/activate
  • Install ipykernel

    • pip install ipykernel
  • Add the kernel to the list

    • pthon -m ipykernel install --user --name venv --display-name my_kernel
  • restart vs code and you should be able to see the new kernel showing up in your list of kernels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment