Jupyter Notebook for Python, R, and Julia
Note that installation of a Python package is a one-time process. You will not have to re-install it once you have installed it.
Installing Python Packages
In order to install Python packages from PyPI (Python Package Index) using pip
:
- Click the New drop-down menu at the top right corner and then choose Terminal.
In the new browser tab with terminal access, type the following command and press enter:
pip install --user PACKAGE_NAME_1, PACKAGE_NAME_2, ...
Make sure to add --user option, which allows you to install the package in your local environment. Not doing so will return a permission error. Note that installation of a package is a one-time process. You will not have to re-install it once you have installed it.
- Check if the packages have been successfully installed.
- Close the tab.
Installing R Packages
In order to install R packages from CRAN (Comprehensive R Archive Network) :
- Create a new notebook for R by clicking the New drop-down menu at the top right corner and then choosing R. Alternatively, you can open any of your existing notebooks for R.
Write the following code in a new cell of the notebook and run it:
install.packages(c("PACKAGE_NAME_1", "PACKAGE_NAME_2", ...), repos="http://cran.r-project.org")
- Check the packages have been successfully installed.
Installing Julia Packages
In order to install Julia packages using Pkg
:
- Create a new notebook for Julia by clicking the New drop-down menu at the top right corner and then choosing Julia. Alternatively, you can open any of your existing notebooks for Julia.
Write the following code in a new cell of the notebook and run it:
using Pkg Pkg.add.(["PACKAGE_NAME_1", "PACKAGE_NAME_2", ...])
Note that installation of a package is a one-time process. You will not have to re-install it once you have installed it.
- Check the packages have been successfully installed.
RStudio for R
Note that installation of an R package is a one-time process. You will not have to re-install it once you have installed it.
In order to install R packages from CRAN (Comprehensive R Archive Network):
- Click the Packages tab in the bottom right section and then click Install.
In the Install Packages dialog, write the name of the package you want to install and then click Install. This will install the exact package you searched for or give you a list of matching packages based on your search text.