I just installed the R core for a jupyter laptop on Windows 10 and am getting the same error as the OP in this post . The box below is the error displayed when you click the Kernel Error button.
Traceback (most recent call last): File "C:\Python27\lib\site-packages\notebook\base\handlers.py", line 436, in wrapper result = yield gen.maybe_future(method(self, *args, **kwargs)) File "C:\Python27\lib\site-packages\notebook\services\sessions\handlers.py", line 56, in post model = sm.create_session(path=path, kernel_name=kernel_name) File "C:\Python27\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 66, in create_session kernel_name=kernel_name) File "C:\Python27\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 84, in start_kernel **kwargs) File "C:\Python27\lib\site-packages\jupyter_client\multikernelmanager.py", line 109, in start_kernel km.start_kernel(**kwargs) File "C:\Python27\lib\site-packages\jupyter_client\manager.py", line 239, in start_kernel **kw) File "C:\Python27\lib\site-packages\jupyter_client\manager.py", line 186, in _launch_kernel return launch_kernel(kernel_cmd, **kw) File "C:\Python27\lib\site-packages\jupyter_client\launcher.py", line 108, in launch_kernel proc = Popen(cmd, **kwargs) File "C:\Python27\lib\subprocess.py", line 672, in __init__ errread, errwrite) File "C:\Python27\lib\subprocess.py", line 882, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified
I have tried many things and I am not sure that I am doing this worse.
- I added C:\Program Files\R\R-3.2.2\bin to my system path so that R can run on the command line. I also tried all combinations of adding C:\Program Files\R\R-3.2.2\bin and C:\Program Files\R\R-3.2.2\bin\x64 to my system path as well as to the user path. In my laptop user interface in the drop-down menu for new laptops, I now see two options for R, and I can not get rid of it.
- I tried working with > IRkernel::installspec() and > IRkernel::installspec(user = FALSE) in RStudio. Since then, I deleted the .json kernel file in %APPDATA%\jupyter\kernels because I tried to delete the duplicate R image that I see in the notebook.
- I tried to add the kernel.json file to C:\Users\[username]\.ipython\kernels\R_kernel with the contents
{"argv": ["C:/Program Files/R/R-3.2.0/bin/R.exe","-e","IRkernel::main()", "--args","{connection_file}"], "display_name":"R" }
And none of them worked. Any help is appreciated. Python 2 works great with my laptop.