Repository navigation
Commit 1e210b7
fix(examples): correct ai_registry_example CRUD ordering and versions print (#6043)
Two issues made v3-examples/model-customization-examples/ai_registry_example.ipynb
fail when run top to bottom:
1. `pprint(versions.__dict__)` raised `AttributeError: 'list' object has no
attribute '__dict__'` because DataSet.get_versions() returns a list
(List[DataSet]). Changed to `pprint(versions)`, matching the other
get_versions cells in the same notebook.
2. The "delete specific version" and "delete all versions" cells ran in the
middle of the DataSet section, deleting the `sdkv3-gen-ds2` dataset before
the later "Use a dataset by name" (DataSet.get) and create_version cells,
which then failed with ResourceNotFound. Moved both delete cells to the end
of the DataSet section so the read/versioning demos run against the live
dataset and cleanup happens last.
Co-authored-by: hrehard <hrehard@amazon.com>1 parent fe4b745 commit 1e210b7
1 file changed
Lines changed: 26 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 93 | + | |
119 | 94 | | |
120 | 95 | | |
121 | 96 | | |
| |||
197 | 172 | | |
198 | 173 | | |
199 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments