-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added set_stacklevel to set the stack level in the dashboard. This in…
…fluences what line to display in the 'Invoked on line' section.
- Loading branch information
1 parent
08768d9
commit 6942eb8
Showing
5 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
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 connect_to_dashboard(*_, **__): | ||
raise NotImplementedError("Install the dashboard dependencies to enable the dashboard") | ||
|
||
def start_dashboard(*_, **__): | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters