+ Gradient

How to use Gradient and



Using Papermill with Gradient Notebooks

Papermill is makes it easy to parameterize and execute Jupyter notebooks. Papermill can be used to generate workflow-like behavior using notebooks -- this makes it really powerful as a tool for automating basic data science pipelines.

Papermill may also be used to programmatically execute entire notebooks!

Getting started with Papermill

First we'll need to launch Jupyter from the Gradient Notebook IDE. Once the notebook is running, look for the Jupyter icon in the left sidebar.

Activate Jupyter by selecting the Jupyter button in the left sidebar of a running notebook

Once Jupyter launches, the first step to use Papermill is to install the package via <inline-code>!pip install papermill</inline-code>.

First install the Papermill library

The next step is typically to parameterize a notebook using tags.

To enable tags, select View > Cell Toolbar > Tags.

Next we'll add a tag called <inline-code>parameters</inline-code>:

Adding our first tag

Now that we've created a parameter, we can run this notebook and pass in the parameter values of our choosing!

That's all there is to it! For more information on using Papermill, be sure to read the docs.