Working with Packages
How to work with 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 manually, but keep in mind that you will need to reinstall these packages every time you return to your workspace.
You should keep track of additional package installs at the top of your notebook, so you can easily rerun the commands when you return to your workspace and to ensure that workspace publications can complete without issues.

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, add !pip install <name-of-pkg> e.g. !pip install pythonwhat in a code cell.

R workspace

To install additional packages, add install.packages("<name-of-pkg>") e.g. install.packages("praise") in a code chunk at the top of your notebook and run the code chunk.
Last modified 19d ago