Since Polus Notebooks are running in the container environment it has a fixed set of packages and libraries installed into it for all users. Of course, it cannot possibly include all existing libraries, so you might want to install something necessary for your research. Here is the walkthrough explaining how to install new package for each of the supported language kernels.
Python packages are managed with conda package manager. You can use
both conda or pip to install and update new packages
- Use Anaconda Cloud to search for package you are interested in
- Choose the package you are looking for. Most of the community
packages are published through
conda-forgeaccount
- Copy the install command and paste it to the notebook cell
You have to append --yes to the end of the command
- Use Python Package Index (PyPi) to search for package you are interested in
- Choose the package you are looking for.
- Copy the install command and paste it to the notebook cell
You have to use exclamation mark before the command to let Jupyter know that this is shell command
You can specify the version to install using =<version> afer name of
the package
!pip install opencv-python=4.1.1.26
You can use both conda or R to install and update new packages
- Use Anaconda Cloud to search for R packages you are interested in
- Choose the package you are looking for. Many R packages are published
through
r/orconda-forge/repos and their names start withr-
- Copy the install command and paste it to the notebook cell
You have to append --yes to the end of the command
system("conda install -c r r-tidyverse --yes", intern=TRUE)
Install packages from CRAN-like repositories or from local files using
install.packages("<PACKAGE_NAME>") command
install.packages("tidyverse")
More documentation on install.packages available here:
https://www.rdocumentation.org/packages/utils/versions/3.6.1/topics/install.packages
Install packages using Pkg as shown below
using Pkg
Pkg.add("CSV")
then load them with using statement:
using CSV
You can add maven dependencies at runtime using magic command
%maven. Full list of supported magic commands is
here.
%mavenRepo scijava.public https://maven.scijava.org/content/groups/public
%maven net.imagej:imagej:2.0.0-rc-71
%maven net.imagej:imagej-notebook:0.7.1
You can search Maven Central for available packages
Octave Forge is a central location for development of packages for GNU Octave, similar to Matlab’s toolboxes. To install a package, use the pkg command from the Octave prompt by typing:
pkg install -forge package_name
pkg load package_name
C++ does not have a built-in package manager. There are multiple existing package manager and if you are interested we may support one of them in the future.









