Packages

DataCamp Workspace's cloud execution environments come pre-packaged with all the common data science and machine learning packages.

If you need additional packages, you can install these manual, but keep in mind that you will have to reinstall these packages every time you return to your workspace.

Python workspace

To see which packages are available in a Python workspace, run !pip freeze in a code cell. This will print out a list of all installed packages along with their version.

To install additional packages, run !pip install <name-of-pkg> e.g. !pip install pythonwhat in a code cell.

R workspace

To see which packages are available in an R workspace, run x[,c("Package", "Version")] in the R console. This will print out a list of all installed packages along with their version.

To install additional packages, run install.packages("<name-of-pkg>") e.g. install.packages("praise") in the R console.