- R Deep Learning Cookbook
- Dr. PKS Prakash Achyutuni Sri Krishna Rao
- 222字
- 2021-07-02 20:49:04
How to do it...
Jupyter Notebook can be installed using the following steps:
- Jupyter Notebook can be installed using pip:
pip3 install --upgrade pip
pip3 install jupyter
- If you have installed Anaconda, then the default computational kernel installed is Python. To install an R computation kernel in Jupyter within the same environment, type the following command in a terminal:
conda install -c r r-essentials
- To install the R computational kernel in a new environment named new-env within conda, type as follows:
conda create -n new-env -c r r-essentials
- Another way to include the R computational kernel in Jupyter Notebook uses the IRkernel package. To install through this process, start the R IDE. The first step is to install dependencies required for the IRkernal installation:
chooseCRANmirror(ind=55) # choose mirror for installation
install.packages(c('repr', 'IRdisplay', 'crayon', 'pbdZMQ',
'devtools'), dependencies=TRUE)
- Once all the dependencies are installed from CRAN, install the IRkernal package from GitHub:
library(devtools)
library(methods)
options(repos=c(CRAN='https://cran.rstudio.com'))
devtools::install_github('IRkernel/IRkernel')
- Once all the requirements are satisfied, the R computation kernel can be set up in Jupyter Notebook using the following script:
library(IRkernel)
IRkernel::installspec(name = 'ir32', displayname = 'R 3.2')
- Jupyter Notebook can be started by opening a shell/terminal. Run the following command to start the Jupyter Notebook interface in the browser, as shown in the screenshot following this code:
jupyter notebook

Jupyter Notebook with the R computation engine
推薦閱讀
- DevOps with Kubernetes
- Dynamics 365 Application Development
- JavaScript+jQuery開發實戰
- 精通網絡視頻核心開發技術
- GeoServer Beginner's Guide(Second Edition)
- 工業機器人離線編程
- Monitoring Docker
- 嵌入式C編程實戰
- C語言程序設計教程
- Mastering Object:Oriented Python(Second Edition)
- HTML5程序設計基礎教程
- Python程序設計教程
- Visual C++程序開發范例寶典
- VC++ 2008專題應用程序開發實例精講
- HTML 5與CSS 3權威指南(第4版·上冊)