Skip to content

Commit a3d3690

Browse files
author
Sarah Krebs
committed
Make notification available in api mode
1 parent 6ebedc5 commit a3d3690

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deepcave/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,17 @@ def get_app(title: str) -> Any:
138138
from deepcave.runs.objective import Objective # noqa
139139
from deepcave.runs.recorder import Recorder # noqa
140140
from deepcave.utils.configs import parse_config
141+
from deepcave.utils.notification import Notification
141142

142143
config_name = None
143144
if "--config" in sys.argv:
144145
config_name = sys.argv[sys.argv.index("--config") + 1]
145146
config = parse_config(config_name)
146147

147-
__all__ = ["version", "Recorder", "Objective", "config"]
148+
# Notifications
149+
notification = Notification()
150+
151+
__all__ = ["version", "Recorder", "Objective", "notification", "config"]
148152
except ModuleNotFoundError:
149153
__all__ = ["version"]
150154

0 commit comments

Comments
 (0)