It works in RST But not in the notebook

Here is a working link that uses an external definition!