diff --git a/scalene/scalene_profiler.py b/scalene/scalene_profiler.py index 5580b4d06..aba022a25 100644 --- a/scalene/scalene_profiler.py +++ b/scalene/scalene_profiler.py @@ -44,13 +44,6 @@ from scalene.get_module_details import _get_module_details from scalene.find_browser import find_browser -console = Console(style="white on blue") - -# Assigning to `nada` disables any console.log commands. -def nada(*args: Any) -> None: - pass -console.log = nada - from collections import defaultdict from importlib.abc import SourceLoader from importlib.machinery import ModuleSpec @@ -97,6 +90,12 @@ def nada(*args: Any) -> None: from scalene.scalene_parseargs import ScaleneParseArgs, StopJupyterExecution from scalene.scalene_sigqueue import ScaleneSigQueue +console = Console(style="white on blue") +# Assigning to `nada` disables any console.log commands. +def nada(*args: Any) -> None: + pass +console.log = nada + MINIMUM_PYTHON_VERSION_MAJOR = 3 MINIMUM_PYTHON_VERSION_MINOR = 8