Kernel Error: Failed to start a kernel

Hi, I was trying to program in R in Jupyter but it gives this error message that there is a kernel error and the connection to the kernel is lost. However. when I am using python kernel, it works perfectly fine, so I am wondering how I could fix this.

Have you tried to open the same R interpreter in a different editor, let’s say R Studio? Or even the command line?

When an interpreter crashes, Jupyter Notebooks suffer from the problem that the standard output with the error message is somewhere in the background. I am no expert in the Rlang kernel but I hope that with the output you get that way you can continue your search for the source of the problem.

1 Like

Oh yeah, it works fine in RStudio but still crashes in Jupyter. Thanks by the way. I will try to re-install R in Jupyter to see it works or not.

same issue with me before i try all but still i face problem

@Rose_Zhang have you started Jupyter Notebook from the command line (CMD) or PowerShell? If you do so, usually the error message shows up in the standard output of that console window.