Guillaume Chevrot

“Anyone who stops learning is old, anyone who keeps learning stays young."

Interacting with an ActivePaper via the notebook

It is now possible to explore a ActivePaper via Jupyter or IPython notebook. I will explore the ActivePaper I created in the previous post. You can also find another example on a plublished ActivePaper here.

Imports

In [2]:
%matplotlib notebook
from activepapers.exploration import ActivePaper
import matplotlib.pyplot as plt ...

A interactive 2D map in the IPython notebook

In this notebook, I plot an interactive 2D map from a molecular dynamics trajectory in the IPython notebook in just a few lines of code. For this purpose, we will take advantage of the powerful package MMTK.

In [1]:
from __future__ import print_function, division

from MMTK import *
from MMTK.Trajectory ...