Skip to content

Commit

Permalink
Merge pull request #26 from ChairOfStructuralAnalysisTUM/feature/mode…
Browse files Browse the repository at this point in the history
…l-repr

Add model HTML representation
  • Loading branch information
oberbichler committed Mar 28, 2020
2 parents bd41b67 + a82f956 commit ff8c372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nfem/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,3 +1244,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)
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def get_version(path):
packages=['nfem', 'nfem.visualization'],
python_requires='>3.6',
install_requires=[
'ipython',
'matplotlib',
'numpy',
'plotly',
Expand Down

0 comments on commit ff8c372

Please sign in to comment.