From 6cbdad7a97a702c28c2f805e3b52e1be968eec3f Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Wed, 10 Aug 2016 14:35:48 -0400 Subject: [PATCH] Add utility function to IPyLammps for embedding videos --- python/lammps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/lammps.py b/python/lammps.py index 6eba1b73c0..472f27ce29 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -698,3 +698,7 @@ class IPyLammps(PyLammps): self.write_dump(*cmd_args) from IPython.core.display import Image return Image('snapshot.png') + + def video(self, filename): + from IPython.display import HTML + return HTML("")