[Jupyter/Python] How to use multi-kernel in jupyter notebook

 

1) make kernel spec

ipython kernelspec install-self --user

 

2) move to kernel spce
cd /home/[user name]/.local/share/jupyter/kernels
ls

 

3) choose kernel

cd python3

or

cd python2

ls

 

4) find out kernel.json and open this file

vi kernel.json

 

5) contents of kernel.json

{

 "_comment": "red is display name to jupyter notebook, blue is language type, green is interpreter(address or command)",
 "display_name": "Python 3",
 "language": "python",

 "argv": [
  "/home/[user name]/anaconda3/bin/python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ]
}

+ Recent posts