File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,14 +145,14 @@ def execute(self):
145
145
if job .parameters :
146
146
mlflow .log_params (job .parameters )
147
147
148
- for index , cell in enumerate (nb .cells ):
148
+ for idx , cell in enumerate (nb .cells ):
149
149
if "tags" in cell .metadata and "mlflow_log" in cell .metadata ["tags" ]:
150
- mlflow .log_text (cell .source , f"source_cell_{ index } .txt" )
150
+ mlflow .log_text (cell .source , f"source_cell_{ idx } .txt" )
151
151
if cell .cell_type == "code" and cell .outputs :
152
152
for output in cell .outputs :
153
153
if "text/plain" in output .data :
154
154
mlflow .log_text (
155
- output .data ["text/plain" ], f"output_cell_{ cell . cell_id } .txt"
155
+ output .data ["text/plain" ], f"output_cell_{ idx } .txt"
156
156
)
157
157
158
158
except CellExecutionError as e :
You can’t perform that action at this time.
0 commit comments