I am wondering if there is an option to change / restart kernel from the notebook’s cell?
I am working on multiple runbooks that often mixes
%%bash cells with actual Python code. In some tutorials I would really use an option to to trigger change of kernel from the code cell.
My use case woudl be to have first set of commands that would create a specific environment and install kernel - so it is in principle selectable from the drop down - but instead of telling the reader to go and choose different kernel in markdown comment I would prefer to just be able to execute a cell with a magic command t hat would restart the notebook with a new kernel.