From ef68e53a3dc295148fed64d73ac9ab8ff5174e68 Mon Sep 17 00:00:00 2001 From: David Ormrod Morley Date: Tue, 29 Sep 2026 18:21:56 +0200 Subject: [PATCH] Fix for movie mp4 with older iPython SO-- --- src/scm/plams/tools/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scm/plams/tools/movie.py b/src/scm/plams/tools/movie.py index 409b6d59..541cb8e6 100644 --- a/src/scm/plams/tools/movie.py +++ b/src/scm/plams/tools/movie.py @@ -135,7 +135,7 @@ def display_movie( attributes.append(f'height="{height}"') display(HTML(f"")) elif suffix == ".mp4": - display(Video(filename=str(movie_path), embed=embed, width=width, height=height)) + display(Video(str(movie_path), embed=embed, width=width, height=height)) else: raise ValueError(f"Unsupported movie format '{movie_path.suffix}'. Supported formats are: .gif, .webp, .mp4")