Only execute code in a trusted notebook