Scala: Kernel disconnected while running multiple Jupyter notebooks tabs

The kernel for Scala doesn’t run for multiple tabs in Jupyter notebook and the kernel gets disconnected. it is fine in running code ( tab) one at a time. To run the second code ( tab), the notebook page needs to be refreshed.

I am also having the same issue , can any one have answer to this?