Create Recipes
Data science recipes describe all of the steps taken in a project from data ingestion to transformation to analysis, and are recorded as step-by-step instructions that can be used to reproduce the state of a session. The recipe can then be edited, replayed, and shared as needed.
Recipes are similar to snapshots with a couple of key differences:
Recipes | Snapshots | |
---|---|---|
Definition | A list of steps that can be loaded into different sessions. | A collection of datasets from a session that can be loaded into different sessions. |
Use Case | Automate processes, share work with others, or save session state for later. | Work with a cleaned version of data in an existing or new session. |
In this chapter:
Save a Recipe
To save your current session as a recipe, click Save in the sidebar. The Save form opens:
- Click Recipe.
- Enter a descriptive name for your new recipe. By default, the name of your session is used.
- Click Submit.
This saves your session as a recipe object, which you can access from the Recipes section on the homepage. Interim modifications to notes are not included in a saved recipe. All modifications to a note are captured in one Modify line.
To improve recipe replays, some skills are not included in saved recipes:
Collaborate
on this recipe with <user>
Connect
to the view <view name>
Create
a new API <api name>
Export
the current recipe to <file name>
the saved recipe <recipe name> to <file name>
Replay
the recipe <recipe name>
Save
the current chart as <name>
the current session as
the defined expressions to <file>
Share
the connection <connection name>
the file <file name>
the recipe <recipe name>
Save a Trimmed Recipe
If you've spent a lot of time exploring your data, calculating different values, and plotting charts, you might want to save a recipe that includes only the tables and charts you actually need.
To save a trimmed recipe, you must be in Notebook mode.
To save a trimmed recipe:
- Select each of the tables, charts, and notes you want to keep using the checkbox in the header.
- Click the Save button in the toolbar.
- Give your recipe a name.
- Click Submit.
The resulting recipe contains only the steps necessary to create the selected charts, tables, and notes.
Save a Copy of a Recipe
- From the homepage, click the Recipe page.
- Select the recipe to copy.
- Click the More button.
- Click the Save As button, then enter a new name for the copy.