What? I suspect that the reason is that 'inline' is just one of several possible so-called backends for iPython, and attempting to import pyplot before specifying the backend causes the Authorea server to look for the default 'tk' backend. Authorea then reports that tk is missing and needs to be reinstalled.