You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test out this extension without any local set-up, please check out the [binder link](https://mybinder.org/v2/gh/mwakaba2/jupyterlab-notifications/main?urlpath=lab/tree/tutorial/py3_demo.ipynb). This will set-up the environment, install the extension, and take you to several demo notebooks for you to play around with to get familiar with the notifications extension.
@@ -80,6 +84,12 @@ Use the following settings to update cell execution time for a notification and
80
84
// The minimum execution time to send out notification for a particular notebook cell (in seconds).
81
85
"minimum_cell_execution_time":60,
82
86
87
+
// Notification Methods
88
+
// Option to send a notification with the specified method(s). The available options are 'browser' and 'ntfy'.
89
+
"notification_methods": [
90
+
"browser"
91
+
],
92
+
83
93
// Report Notebook Cell Execution Time
84
94
// Display notebook cell execution time in the notification.
85
95
// If last_cell_only is set to true, the total duration of the selected cells will be displayed.
@@ -106,6 +116,47 @@ Use the following settings to update cell execution time for a notification and
106
116
107
117
The cell timing doesn't need to be enabled for Jupyterlab >= 3.1 and Jupyterlab notification version >= v0.3.0.
> ntfy brings notification to your shell. It can automatically provide desktop notifications when long running code executions finish or it can send push notifications to your phone when a specific execution finishes.
126
+
127
+
### How to enable notifications via `ntfy`
128
+
129
+
Install `ntfy`.
130
+
131
+
```console
132
+
$ pip install ntfy
133
+
```
134
+
To configure ntfy, please check out [the ntfy official configuration docs](https://ntfy.readthedocs.io/en/latest/#configuring-ntfy)
135
+
136
+
For example, if your OS is Linux and you want to select `pushover` for the backend, set configuration as follows.
137
+
138
+
```console
139
+
$ vim ~/.config/ntfy/ntfy.yml
140
+
```
141
+
142
+
```yaml
143
+
backends:
144
+
- pushover
145
+
pushover:
146
+
user_key: YOUR_PUSHOVER_USER_KEY
147
+
```
148
+
149
+
Change the notifications [settings](#settings). Append `"ntfy"` into `notification_methods` attribute.
150
+
- NOTE: The value `browser` implies default conventional method, which uses Webbrowser's Notification API.
0 commit comments