Using Pip, Apt, and Other Dependencies

For anything more than a simple command, it is likely you will need to specify additional dependencies to get your code to run. There are a number of options for doing so.

Pip

You can add pip packages using the --pip option followed by the name of the package.

$spell run --pip sklearn "python train.py" To add multiple packages, you can either add each one using the --pip option or supply a single pip requirements file via the --pip-req option.$ spell run --pip sklearn --pip imageio "python train.py"

or

Luarocks

To install luarocks packages for torch, install loadcaffe within your run command.

Docker Hub Public Images

The --from command line option allows you to specify a custom docker image providing the environment for the run. The image must be publicly available on Docker Hub.

Here's an example using OpenPose to detect poses of people in a video.