-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
andy-landy
committed
Dec 5, 2021
1 parent
e97f94f
commit 0047463
Showing
8 changed files
with
55 additions
and
19 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
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,11 +1,14 @@ | ||
""" | ||
For the simplest usage possible. Just import it | ||
For the simplest usage possible. Jupyter or IPython. Just import it | ||
""" | ||
|
||
from traceback_with_variables.color import ColorSchemes | ||
from traceback_with_variables.global_hooks import global_print_exc_in_ipython, Format, is_ipython_global | ||
from traceback_with_variables.global_hooks import global_print_exc_in_ipython, is_ipython_global | ||
from traceback_with_variables import core | ||
|
||
global_print_exc_in_ipython(fmt=Format( | ||
|
||
core.default_format = core.default_format.replace( | ||
custom_var_printers=[(is_ipython_global, lambda v: None)], | ||
color_scheme=ColorSchemes.common | ||
)) | ||
) | ||
global_print_exc_in_ipython() |
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