We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de3ff5 commit 823bc17Copy full SHA for 823bc17
jupyter_scheduler/executors.py
@@ -144,6 +144,17 @@ def execute(self):
144
ep.preprocess(nb, {"metadata": {"path": staging_dir}})
145
if job.parameters:
146
mlflow.log_params(job.parameters)
147
+
148
+ for index, cell in enumerate(nb.cells):
149
+ if "tags" in cell.metadata and "mlflow_log" in cell.metadata["tags"]:
150
+ mlflow.log_text(cell.source, f"source_cell_{index}.txt")
151
+ if cell.cell_type == "code" and cell.outputs:
152
+ for output in cell.outputs:
153
+ if "text/plain" in output.data:
154
+ mlflow.log_text(
155
+ output.data["text/plain"], f"output_cell_{cell.cell_id}.txt"
156
+ )
157
158
except CellExecutionError as e:
159
raise e
160
finally:
0 commit comments