Session Ready
Exercise

Parametrize notebooks

To practice notebook parametrization, we will work with a Jupyter notebook called sklearn.ipynb.

This notebook can run any scikit-learn model on any built-in scikit-learn dataset.

The dataset and model that the notebook will use depend on the four parameters it receives.

To find the parameter names, we will use papermill to look at the source attribute of an nbformat NotebookNode object cell.

We will need the parameter names to create a dictionary of parameters that we will then use to execute the notebook.

Instructions
100 XP
  • Use a nbformat function to find the default parameter names.
  • Pass custom parameters as a dictionary to and run the notebook.