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.
@@ -85,6 +89,12 @@ Use the following settings to update cell execution time for a notification and
85
89
// The minimum execution time to send out notification for a particular notebook cell (in seconds).
86
90
"minimum_cell_execution_time":60,
87
91
92
+
// Notification Methods
93
+
// Methods how to notificate messages. Select from 'browser' or 'ntfy'
94
+
"notification_methods": [
95
+
"browser"
96
+
],
97
+
88
98
// Report Notebook Cell Execution Time
89
99
// Display notebook cell execution time in the notification.
90
100
// If last_cell_only is set to true, the total duration of the selected cells will be displayed.
@@ -98,6 +108,45 @@ Use the following settings to update cell execution time for a notification and
> ntfy brings notification to your shell. It can automatically provide desktop notifications when long running commands finish or it can send push notifications to your phone when a specific command finishes.
118
+
119
+
### How to work
120
+
121
+
Install `ntfy`.
122
+
123
+
```console
124
+
$ pip install ntfy
125
+
```
126
+
Configure ntfy in accodance with [the ntfy official document](https://ntfy.readthedocs.io/en/latest/#configuring-ntfy)
127
+
128
+
```console
129
+
$ vim ~/.config/ntfy/ntfy.yml
130
+
```
131
+
132
+
```yaml
133
+
backends:
134
+
- pushover
135
+
pushover:
136
+
user_key: hunter2
137
+
```
138
+
139
+
Change the notifications [settings](#settings). Append `"ntfy"` into `notification_methods` attribute.
140
+
- NOTE: The value `browser` implies default conventional method, which uses Webbrowser's Notification API.
0 commit comments