how to change python kernel with virtualenv code example
Example: change kernel from a jupyter cell
%%javascript
Jupyter.notebook.session.restart({kernel_name: 'python3'})
%%javascript
Jupyter.notebook.session.restart({kernel_name: 'python3'})