rwindowsjupyter-irkernel

How to install Jupyter Lab/Notebook on Windows 10?


I have been using R/Python and Jupyter Lab/Notebook on Macbook. In my new job, I need to install and run these applications on Windows 10.

I have Python, pip, Jupyter, R4.1 & RStudio installed manually (not through Anaconda). I try to execute step 2/3: Making the kernel available to Jupyter based on installation guide. I got error message in R Console.

> IRkernel::installspec()
Error in IRkernel::installspec() : 
  jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127.
In addition: Warning message:
In system2("jupyter", c("kernelspec", "--version"), FALSE, FALSE) :
  '"jupyter"' not found

Appreciate your advice.


Solution

  • Please check if jupyter is in your user/system path. A quick way to check is by running jupyter in the command line, you could use powershell commandline:

    Get-Command jupyter
    
    CommandType     Name                                               Version    Source
    -----------     ----                                               -------    ------
    Application     jupyter.exe                                        0.0.0.0    C:\Users\youruser\AppData\Local\Programs\...
    

    If it's not there, then you can add to your system/user path and check with new instance of commandline again.