Skip to content

Commit

Permalink
docs: Add brief section on updating templates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidberenstein1957 committed Oct 3, 2024
1 parent 1bb20d8 commit 9cb02de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions argilla/docs/how_to_guides/custom_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,11 @@ Besides the new `CustomField` code above, reusing the same approach as in the [U

![example-gallery-end](../assets/images/how_to_guides/custom_field/3d_object_viewer.png)

## Updating templates

As described in the [dataset guide](./dataset.md), you can update certain setting attributes for a published dataset. This includes the custom fields templates, which is a usefule feature when you want to iterate on the template of a custom field without the need to create a new dataset. The following example shows how to update the template of a custom field.

```python
dataset.settings.fields["custom"].template = "<new-template>"
dataset.update()
```
1 change: 1 addition & 0 deletions argilla/docs/how_to_guides/dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ Once a dataset is published, there are limited things you can update. Here is a
|Title |✅ |✅ |
|Required |❌ |❌ |
|Use markdown|✅ |✅ |
|Template |✅ |❌ |

=== "Questions"
| Attributes | From SDK | From UI |
Expand Down

0 comments on commit 9cb02de

Please sign in to comment.