From 4655741c47627916977354413e9a25f6e1f3d04b Mon Sep 17 00:00:00 2001 From: Thomas Oberbichler Date: Sat, 28 Mar 2020 12:54:31 +0100 Subject: [PATCH 1/2] Add ipython to requirements --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 39b190b..241fc88 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,7 @@ def get_version(path): packages=['nfem', 'nfem.visualization'], python_requires='>3.6', install_requires=[ + 'ipython', 'matplotlib', 'numpy', 'plotly', From 923698a7d92ac3e001bf1bcb70b71c895ddcb45d Mon Sep 17 00:00:00 2001 From: Thomas Oberbichler Date: Sat, 28 Mar 2020 12:54:46 +0100 Subject: [PATCH 2/2] Add model html representation --- nfem/model.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nfem/model.py b/nfem/model.py index 91efd8a..7244ef9 100644 --- a/nfem/model.py +++ b/nfem/model.py @@ -1240,3 +1240,7 @@ def load_displacement_curve(self, dof, skip_iterations=True): data[1, i] = self.lam return data + + def _repr_html_(self): + from nfem.visualization.notebook_animation import animate_model + return animate_model(self)