Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

In this page:




Note that installation of a Python/R/Julia package is a one-time process. You will not have to re-install it once you have installed it.

Installing Python Packages

Using Jupyter Notebook

In order to install Python packages in a notebook:

  1. Create a new notebook for Python by clicking the New drop-down menu at the top right corner and then choosing Python. Alternatively, you can open any of your existing notebooks for Python.
  2. Write the following code in a new cell of the notebook and run it:

    !pip3 install --upgrade PACKAGE_NAME
  3. Check if the package has been successfully installed.

Using the Terminal

In order to install Python packages from PyPI (Python Package Index) using pip:

  1. Click the New drop-down menu at the top right corner and then choose Terminal.
  2. 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. 

  3. Check if the packages have been successfully installed.
  4. Close the tab.

Installing R Packages

Using RStudio

In order to install R packages from CRAN (Comprehensive R Archive Network) :

  1. In the Console tab in RStudio, or in an R script file, type the following code and then run it:

    install.packages(c("PACKAGE_NAME_1", "PACKAGE_NAME_2", ...), repos="http://cran.r-project.org")
  2. Check if the packages have been successfully installed.

Using Jupyter Notebook

In order to install R packages from CRAN (Comprehensive R Archive Network) :

  1. 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.
  2. 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")
  3. Check if the packages have been successfully installed.

Installing Julia Packages

In order to install Julia packages using Pkg :

  1. 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.
  2. Write the following code in a new cell of the notebook and run it:

    using Pkg
    Pkg.add(["PACKAGE_NAME_1", "PACKAGE_NAME_2", ...])
  3. Check if the packages have been successfully installed.
  • No labels