On this pagemb.in_modelbit()Returns True when called in a deployment or training job, and False when called in a notebook.Exampleif mb.in_modelbit(): ...See alsomb.get_branchmb.get_deployment_info