I have already installed Jupyter notebook in my ubuntu 16.04 machine. In jupyter notebook there is by default python installed. Now I want to use R from jupyter notebook.
To do so I followed IRkernel installation link and run below commands:
install.packages('devtools') devtools::install_github('IRkernel/IRkernel')
But when I run IRkernel::installspec()
command it shows below error:
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127
I am now confused why this error occurs.
Jupyter clients (also commonly called frontends) are programs which communicate with Jupyter kernels, possibly starting them and then sending them requests over the ZeroMQ-based messaging protocol. Examples of Jupyter clients include the Jupyter console, the QtConsole, and the http://jupyter.org/.
Jupyter doesn't load or doesn't work in the browserTry disabling any browser extensions and/or any Jupyter extensions you have installed. Some internet security software can interfere with Jupyter. If you have security software, try turning it off temporarily, and look in the settings for a more long-term solution.
JupyterLab uses the exact same Notebook server and file format as the classic Jupyter Notebook, so that it is fully compatible with the existing notebooks and kernels. The Classic Notebook and Jupyterlab can run side to side on the same computer.
Running this command from RStudio will show this error. When you run this command from command line/ terminal then everything will be fine.
So just type R
from your command line.
Then Run below commands:
install.packages('devtools') devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()
cd C:\Program Files\R\R-3.5.1\bin
and start R by typing R
IRkernel::installspec()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With