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
<p>Posit Connect documentation for Vars (environment variables): <a href="https://docs.posit.co/connect/user/content-settings/#content-vars" target="_blank">https://docs.posit.co/connect/user/content-settings/#content-vars</a></p>
167
-
"""
168
-
display(HTML(html_content))
169
-
170
-
171
-
# Display table with basic styling
154
+
# Create a shared table that will be used by both dashboard and email formats
172
155
if not show_instructions and not df.empty:
173
-
174
156
# First create links for name and guid columns
175
157
df_display = df.copy()
176
158
@@ -199,24 +181,51 @@ if not show_instructions and not df.empty:
# Computer if we should send an email, only send if at least one app has a failure
212
-
send_email = not df.empty and (df['status'] == 'FAIL').any()
198
+
# Display instructions if setup failed
199
+
if show_instructions:
200
+
from IPython.display import display, HTML
201
+
html_content = """
202
+
<h2>Setup Instructions</h2>
203
+
<ul>
204
+
"""
205
+
for instruction in instructions:
206
+
html_content += f"<li>{instruction}</li>"
207
+
208
+
html_content += """
209
+
</ul>
210
+
<p>Posit Connect documentation for Vars (environment variables): <a href="https://docs.posit.co/connect/user/content-settings/#content-vars" target="_blank">https://docs.posit.co/connect/user/content-settings/#content-vars</a></p>
211
+
"""
212
+
display(HTML(html_content))
213
+
214
+
# Display the table (now using the pre-created gt_tbl from above)
215
+
elif gt_tbl is not None:
216
+
gt_tbl
217
+
else:
218
+
display(HTML("<p>No applications are currently being monitored.</p>"))
213
219
```
220
+
:::
214
221
215
222
216
223
::: {.email .content-visible when-format="email"}
217
224
218
225
::: {.email-scheduled}
219
-
`{python} send_email`
226
+
```{python}
227
+
send_email
228
+
```
220
229
:::
221
230
222
231
::: {.subject}
@@ -234,8 +243,7 @@ One or more of the apps you are monitoring have failed.
0 commit comments