10 lines
486 B
Python
10 lines
486 B
Python
try:
|
|
from mpire.dashboard.dashboard import connect_to_dashboard, shutdown_dashboard, start_dashboard
|
|
from mpire.dashboard.utils import get_stacklevel, set_stacklevel
|
|
except (ImportError, ModuleNotFoundError):
|
|
def _not_installed(*_, **__):
|
|
raise NotImplementedError("Install the dashboard dependencies to enable the dashboard")
|
|
|
|
connect_to_dashboard = shutdown_dashboard = start_dashboard = _not_installed
|
|
get_stacklevel = set_stacklevel = _not_installed
|