Kernel automatically restarts

I have troubles with automatically restarting kernel after updating jupyter notebook. In new version I don’t have choice to not restart and I have this window just after big sql query! I didn’t have it before at the same code.
What can I do for not restarting automatically? Maybe do smth in the config or in settings?