I want my code to behave differently while I'm developing it in Jupyterlab than it does when live as a model, but I don't want to manually edit a true/false variable every time. Is there a smart way to do this programmatically?
Domino injects a handful of useful environment variables into your runs - you can use the `HOSTNAME` environment variable to tell if you're inside a model.
In a Domino model, it will look like model-<hash>, for example:
Comments
1 comment
Submitted by: mac.rogers
Please sign in to leave a comment.