TrueFoundryChangelog
Announcements
RemovalAI DeployAnnounced Jun 26, 2026

Deprecation of Images and Plots in Job Runs

Image and plot logging is removed in control plane v0.156.0 and truefoundry Python v0.17.0. Existing data is migrated to artifacts automatically.

Who's affected
AI Deployment teams whose job or training scripts log images or plots on runs. If you only use AI Gateway, or already log files as artifacts, nothing changes.
What to do
Replace log_images and log_plots calls with log_artifact and upgrade the truefoundry package. Existing images and plots move to Artifacts automatically.
On-prem versions
Starts in 0.156.0Compare them with the control plane version you run.

What Is Changing

Starting with control plane v0.156.0 and truefoundry v0.17.0, dedicated support for logging and visualizing images and plots on experiment runs is removed.

  • run.log_images() and run.log_plots() are no longer supported for new runs — removed from the truefoundry Python package in v0.17.0 and from the platform in v0.156.0.
  • The dedicated Images and Plots tabs on run detail pages are removed in v0.156.0.
  • All existing logged images and plots are automatically migrated to standard artifacts when you upgrade to v0.156.0. Migrated files appear under the Artifacts tab on the associated run.

This is a breaking change for any workflow that relies on the dedicated image and plot logging APIs or the in-dashboard visualization for those artifact types.

Why This Change

Image and plot logging sees very limited adoption across job runs. For the typical job-run workflow — persisting training outputs, evaluation figures, or diagnostic files — standard artifacts already cover the same use case:

  • Save image or plot files to disk during your job.
  • Log them with run.log_artifact() and ArtifactPath — pass step the same way you did with log_images() and log_plots().
  • Access them from the Artifacts tab on the run, or download them via the SDK.

This simplifies the platform surface area without losing the ability to capture visual outputs from your jobs.

What You Need to Do

  1. Upgrade to v0.156.0

    On upgrade, existing images and plots logged on prior runs are migrated to artifacts automatically. No manual data migration is required.

  2. Update your scripts and SDK

    Search your training scripts, notebooks, and job definitions for log_images, log_plots, and any references to image or plot artifact types. Replace them with run.log_artifact() before your next job run (see examples below). Upgrade the truefoundry package to v0.17.0 or later:

    pip install --upgrade "truefoundry>=0.17.0"
    

    run.log_images() and run.log_plots() are removed in that release.

  3. Validate your job runs

    Run a test job and confirm that logged files appear under the Artifacts tab on the run detail page.

Migrating plots

Before:

import matplotlib.pyplot as plt
from sklearn.metrics import ConfusionMatrixDisplay

ConfusionMatrixDisplay.from_predictions(["spam", "ham"], ["ham", "ham"])
run.log_plots({"confusion_matrix": plt}, step=1)

After:

import matplotlib.pyplot as plt
from sklearn.metrics import ConfusionMatrixDisplay
from truefoundry.ml import ArtifactPath

ConfusionMatrixDisplay.from_predictions(["spam", "ham"], ["ham", "ham"])
plt.savefig("confusion_matrix.png")

run.log_artifact(
    name="evaluation-plots",
    artifact_paths=[ArtifactPath(src="confusion_matrix.png")],
    step=1,
)

For Plotly figures, save as HTML or PNG before logging:

fig.write_html("distribution-plot.html")
run.log_artifact(
    name="evaluation-plots",
    artifact_paths=[ArtifactPath(src="distribution-plot.html")],
    step=1,
)

Migrating images

Before:

from truefoundry.ml import Image

images_to_log = {
    "logged-image-from-path": Image(data_or_path="result_image.jpeg"),
}
run.log_images(images_to_log, step=1)

After:

from truefoundry.ml import ArtifactPath

run.log_artifact(
    name="training-images",
    artifact_paths=[ArtifactPath(src="result_image.jpeg")],
    step=1,
)

See Job Runs and Logging — Log Artifacts for the full log_artifact reference.


If you have questions or need help migrating image and plot logging to artifacts, reach out to [email protected] — we're happy to assist.

Questions about this change? Email [email protected].