diff --git a/maidr/util/environment.py b/maidr/util/environment.py index c646854..db7b0c8 100644 --- a/maidr/util/environment.py +++ b/maidr/util/environment.py @@ -1,5 +1,6 @@ import json import os +import sys class Environment: @@ -24,7 +25,12 @@ def is_notebook() -> bool: return get_ipython() is not None and "ipykernel" in str(get_ipython()) except ImportError: - return False + pass + + if "google.colab" in sys.modules: + return True + + return False @staticmethod def get_renderer() -> str: