jupyter-slides-template¶

  • This is a web version of a Jupyter notebook RISE presentation
  • It is automatically generated from this jupyter notebook
  • Press Space or Right to move to the next page
  • Press Shift+Space or Left to move to the previous page
  • Press Escape to zoom out
  • Make your own at github.com/ssciwr/jupyter-slides-template

Display a cell with its output¶

In [1]:
import sme

model = sme.open_example_model()
print(model)
<sme.Model>
  - name: 'Very Simple Model'
  - compartments:
     - Outside
     - Cell
     - Nucleus
  - membranes:
     - Outside <-> Cell
     - Cell <-> Nucleus

Output can be plots or images¶

In [2]:
import matplotlib.pyplot as plt

plt.title(model.name)
plt.imshow(model.compartment_image[0, :])
plt.show()
No description has been provided for this image

Or even videos¶

In [3]:
import sme_contrib.plot as smeplot
from IPython.display import HTML

results = model.simulate(100, 10)
anim = smeplot.concentration_heatmap_animation(results, ["B_cell"])
HTML(anim.to_html5_video())
Out[3]:
Your browser does not support the video tag.

More information¶

  • https://medium.com/@mjspeck/presenting-code-using-jupyter-notebook-slides-a8a3c3b59d67
  • https://www.blog.pythonlibrary.org/2018/09/25/creating-presentations-with-jupyter-notebook/
  • https://rise.readthedocs.io/
  • https://github.com/ssciwr/jupyter-slides-template