Workaround 

The problem:

Standard Python notebook practice is to first start with import commands and then follow with  magic commands such as %matplotlib inline.  See  Section \ref{213887} for an example.
If, however, you do this when attempting to run a Jupyter notebook within Authorea, your notebook will crash (as of the time of this writing). This appears to be  because of a bug in the Authorea implementation, or rather, because a needed module is missing.    

The workaround:

Reverse the order of the commands!