# Kernel Error: Failed to start a kernel

**URL:** <https://discourse.jupyter.org/t/kernel-error-failed-to-start-a-kernel/8690>\
**Category:** Kernels\
**Created:** [April 8, 2021, 6:25pm UTC](https://discourse.jupyter.org/t/kernel-error-failed-to-start-a-kernel/8690 "2021-04-08T18:25:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rose\_Zhang](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/rose_zhang/32/4131_2.png) [@Rose\_Zhang](https://discourse.jupyter.org/u/Rose_Zhang)\
**Post date:** [April 8, 2021, 6:25pm UTC](https://discourse.jupyter.org/t/kernel-error-failed-to-start-a-kernel/8690/1 "2021-04-08T18:25:54Z")

</div>

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.

 ![Pic](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/2/289522240e5fd56b15d53d181bc56dd441dd5077.png)

---

<div class="post-metadata">

**Author:** ![1kastner](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/1kastner/32/1537_2.png) [@1kastner](https://discourse.jupyter.org/u/1kastner)\
**Post date:** [April 9, 2021, 8:05am UTC](https://discourse.jupyter.org/t/kernel-error-failed-to-start-a-kernel/8690/2 "2021-04-09T08:05:34Z")

</div>

Have you tried to open the same R interpreter in a different editor, let’s say R Studio? Or even [the command line](https://stackoverflow.com/questions/18306362/run-r-script-from-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.

---

<div class="post-metadata">

**Author:** ![Rose\_Zhang](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/rose_zhang/32/4131_2.png) [@Rose\_Zhang](https://discourse.jupyter.org/u/Rose_Zhang)\
**Post date:** [April 23, 2021, 8:52am UTC](https://discourse.jupyter.org/t/kernel-error-failed-to-start-a-kernel/8690/3 "2021-04-23T08:52:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Haresh\_kumar](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/haresh_kumar/32/4640_2.png) [@Haresh\_kumar](https://discourse.jupyter.org/u/Haresh_kumar)\
**Post date:** [June 19, 2021, 4:52am UTC](https://discourse.jupyter.org/t/kernel-error-failed-to-start-a-kernel/8690/4 "2021-06-19T04:52:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![1kastner](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/1kastner/32/1537_2.png) [@1kastner](https://discourse.jupyter.org/u/1kastner)\
**Post date:** [July 13, 2021, 11:36am UTC](https://discourse.jupyter.org/t/kernel-error-failed-to-start-a-kernel/8690/5 "2021-07-13T11:36:12Z")

</div>

@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.
