keneonyeachonam commited on
Commit
bb5fda0
1 Parent(s): 27e6558

Upload 3 files

Browse files
Files changed (3) hide show
  1. ChatGPT-GPT4-Log.md +578 -0
  2. app.py +149 -0
  3. requirements.txt +2 -0
ChatGPT-GPT4-Log.md ADDED
@@ -0,0 +1,578 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The 8 dimensions of Self Care are Emotional, Spiritual, Financial, Cognitive, Aptitudinal, Relational, Environmental, Physical and Emotional. Create a streamlit markdown outline program which shows a markdown mermaid chart that has each connecting to a central circle. For each Create an Emoji Icon with the Title and create a very short explanation for each (like Emoji + Cognitive, How we think.)
2
+
3
+ To create a Streamlit application with a Mermaid chart, you'll need to first install Streamlit and the streamlit-mermaid package. You can do this by running:
4
+
5
+ bash
6
+ Copy code
7
+ pip install streamlit streamlit-mermaid
8
+ Next, create a new Python file, for example self_care_app.py, and add the following code to it:
9
+
10
+ python
11
+ Copy code
12
+ import streamlit as st
13
+ from streamlit_mermaid import mermaid
14
+
15
+ st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
16
+
17
+ st.title("8 Dimensions of Self Care")
18
+
19
+ mermaid_chart = '''
20
+ graph TD
21
+ A[🌱 Emotional, How we feel] --> B[🔮 Self Care]
22
+ C[🙏 Spiritual, Our beliefs] --> B
23
+ D[💰 Financial, How we manage money] --> B
24
+ E[💡 Cognitive, How we think] --> B
25
+ F[🎯 Aptitudinal, Our abilities] --> B
26
+ G[🤝 Relational, Our connections] --> B
27
+ H[🌍 Environmental, Our surroundings] --> B
28
+ I[🏃‍♂️ Physical, Our bodies] --> B
29
+ '''
30
+
31
+ mermaid(mermaid_chart, width="100%")
32
+ Finally, run your Streamlit application with the following command:
33
+
34
+ bash
35
+ Copy code
36
+ streamlit run self_care_app.py
37
+ This code will create a Streamlit application with a Mermaid chart showing the 8 dimensions of self-care connected to a central circle labeled "Self Care". Each dimension will have an emoji icon and a short explanation:
38
+
39
+ 🌱 Emotional - How we feel
40
+ 🙏 Spiritual - Our beliefs
41
+ 💰 Financial - How we manage money
42
+ 💡 Cognitive - How we think
43
+ 🎯 Aptitudinal - Our abilities
44
+ 🤝 Relational - Our connections
45
+ 🌍 Environmental - Our surroundings
46
+ 🏃‍♂️ Physical - Our bodies
47
+
48
+
49
+
50
+ Aaron Wacker
51
+ rewrite the code as markdown code
52
+
53
+ I apologize for the confusion. Here's a Markdown version of the Mermaid chart along with the short explanations for each dimension. Unfortunately, emojis are not supported in Mermaid, so I have replaced them with plain text.
54
+
55
+ markdown
56
+ Copy code
57
+ ## 8 Dimensions of Self Care
58
+
59
+ ```mermaid
60
+ graph TD
61
+ A["Emotional - How we feel"] --> B["Self Care"]
62
+ C["Spiritual - Our beliefs"] --> B
63
+ D["Financial - How we manage money"] --> B
64
+ E["Cognitive - How we think"] --> B
65
+ F["Aptitudinal - Our abilities"] --> B
66
+ G["Relational - Our connections"] --> B
67
+ H["Environmental - Our surroundings"] --> B
68
+ I["Physical - Our bodies"] --> B
69
+ css
70
+ Copy code
71
+
72
+ You can copy and paste this Markdown code into any Markdown editor or viewer that supports Mermaid syntax to display the diagram. Note that not all Markdown editors support Mermaid, so you might need to find one that specifically supports it, such as Typora or the Mermaid Live Editor.
73
+
74
+
75
+
76
+ Aaron Wacker
77
+ using this list below create a markdown outline that shows positive reframing strategies and techniques to promote positive mental health for self care: 🌱 Emotional - How we feel
78
+ 🙏 Spiritual - Our beliefs
79
+ 💰 Financial - How we manage money
80
+ 💡 Cognitive - How we think
81
+ 🎯 Aptitudinal - Our abilities
82
+ 🤝 Relational - Our connections
83
+ 🌍 Environmental - Our surroundings
84
+ 🏃‍♂️ Physical - Our bodies
85
+
86
+ Below is a Markdown outline with positive reframing strategies and techniques to promote positive mental health for each dimension of self-care:
87
+
88
+ markdown
89
+ Copy code
90
+ # Positive Reframing Strategies for Self Care
91
+
92
+ ## 🌱 Emotional - How we feel
93
+ 1. Practice gratitude
94
+ 2. Focus on the present moment
95
+ 3. Use positive affirmations
96
+ 4. Surround yourself with positivity
97
+
98
+ ## 🙏 Spiritual - Our beliefs
99
+ 1. Engage in regular meditation or prayer
100
+ 2. Connect with nature
101
+ 3. Practice forgiveness and self-compassion
102
+ 4. Attend spiritual gatherings or join a spiritual community
103
+
104
+ ## 💰 Financial - How we manage money
105
+ 1. Create a realistic budget
106
+ 2. Set achievable financial goals
107
+ 3. Prioritize paying off debts
108
+ 4. Invest in your future
109
+
110
+ ## 💡 Cognitive - How we think
111
+ 1. Challenge negative thoughts
112
+ 2. Practice mindfulness
113
+ 3. Set achievable personal goals
114
+ 4. Engage in lifelong learning
115
+
116
+ ## 🎯 Aptitudinal - Our abilities
117
+ 1. Identify and develop your strengths
118
+ 2. Set realistic expectations
119
+ 3. Embrace failure as a learning opportunity
120
+ 4. Seek out opportunities for personal growth
121
+
122
+ ## 🤝 Relational - Our connections
123
+ 1. Nurture positive relationships
124
+ 2. Communicate openly and honestly
125
+ 3. Practice empathy and active listening
126
+ 4. Set healthy boundaries
127
+
128
+ ## 🌍 Environmental - Our surroundings
129
+ 1. Create a calming and organized living space
130
+ 2. Spend time in nature
131
+ 3. Reduce exposure to environmental stressors
132
+ 4. Practice sustainable living
133
+
134
+ ## 🏃‍♂️ Physical - Our bodies
135
+ 1. Engage in regular physical activity
136
+ 2. Prioritize sleep and relaxation
137
+ 3. Maintain a balanced and nutritious diet
138
+ 4. Limit alcohol and drug consumption
139
+ You can use this outline as a guide for practicing positive reframing strategies and techniques to promote better mental health and overall self-care.
140
+
141
+
142
+
143
+
144
+ Aaron Wacker
145
+ Reduce the outline to have the top three tips
146
+
147
+ Here's the revised Markdown outline with the top three tips for each dimension of self-care:
148
+
149
+ markdown
150
+ Copy code
151
+ # Top Three Tips for Self Care
152
+
153
+ ## 🌱 Emotional - How we feel
154
+ 1. Practice gratitude
155
+ 2. Focus on the present moment
156
+ 3. Use positive affirmations
157
+
158
+ ## 🙏 Spiritual - Our beliefs
159
+ 1. Engage in regular meditation or prayer
160
+ 2. Connect with nature
161
+ 3. Practice forgiveness and self-compassion
162
+
163
+ ## 💰 Financial - How we manage money
164
+ 1. Create a realistic budget
165
+ 2. Set achievable financial goals
166
+ 3. Prioritize paying off debts
167
+
168
+ ## 💡 Cognitive - How we think
169
+ 1. Challenge negative thoughts
170
+ 2. Practice mindfulness
171
+ 3. Set achievable personal goals
172
+
173
+ ## 🎯 Aptitudinal - Our abilities
174
+ 1. Identify and develop your strengths
175
+ 2. Set realistic expectations
176
+ 3. Embrace failure as a learning opportunity
177
+
178
+ ## 🤝 Relational - Our connections
179
+ 1. Nurture positive relationships
180
+ 2. Communicate openly and honestly
181
+ 3. Practice empathy and active listening
182
+
183
+ ## 🌍 Environmental - Our surroundings
184
+ 1. Create a calming and organized living space
185
+ 2. Spend time in nature
186
+ 3. Reduce exposure to environmental stressors
187
+
188
+ ## 🏃‍♂️ Physical - Our bodies
189
+ 1. Engage in regular physical activity
190
+ 2. Prioritize sleep and relaxation
191
+ 3. Maintain a balanced and nutritious diet
192
+ This outline provides a more concise list of tips for promoting better mental health and overall self-care.
193
+
194
+
195
+
196
+
197
+ Aaron Wacker
198
+ use python streamlit and graphviz to write an app that displays this advice as a radial circular diagram complete with emojis. At the center of the circle model put the title "8 Dimensions of Self Care"
199
+
200
+ To create a Streamlit application that displays the advice as a radial circular diagram using Graphviz, you'll need to install Streamlit and the graphviz package. You can do this by running:
201
+
202
+ bash
203
+ Copy code
204
+ pip install streamlit graphviz
205
+ Next, create a new Python file, for example self_care_app.py, and add the following code to it:
206
+
207
+ python
208
+ Copy code
209
+ import streamlit as st
210
+ import graphviz as gv
211
+
212
+ st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
213
+
214
+ st.title("8 Dimensions of Self Care")
215
+
216
+ g = gv.Graph(format='svg', engine='circo')
217
+
218
+ g.node('B', label="8 Dimensions of Self Care", shape="ellipse", fontsize="20", style="filled", fillcolor="lightblue")
219
+
220
+ dimensions = [
221
+ ('A', "🌱 Emotional\nHow we feel"),
222
+ ('C', "🙏 Spiritual\nOur beliefs"),
223
+ ('D', "💰 Financial\nHow we manage money"),
224
+ ('E', "💡 Cognitive\nHow we think"),
225
+ ('F', "🎯 Aptitudinal\nOur abilities"),
226
+ ('G', "🤝 Relational\nOur connections"),
227
+ ('H', "🌍 Environmental\nOur surroundings"),
228
+ ('I', "🏃‍♂️ Physical\nOur bodies"),
229
+ ]
230
+
231
+ for node, label in dimensions:
232
+ g.node(node, label=label, shape="ellipse", fontsize="16", style="filled", fillcolor="lightgoldenrodyellow")
233
+
234
+ for node, _ in dimensions:
235
+ g.edge('B', node)
236
+
237
+ st.graphviz_chart(g)
238
+ Finally, run your Streamlit application with the following command:
239
+
240
+ bash
241
+ Copy code
242
+ streamlit run self_care_app.py
243
+ This code will create a Streamlit application with a radial circular diagram using Graphviz. The diagram will display the 8 dimensions of self-care, each with an emoji icon, connected to a central circle labeled "8 Dimensions of Self Care".
244
+
245
+
246
+
247
+
248
+ Aaron Wacker
249
+ change the arrangement of the graph to optimize for eliminating white space by making arrangement radial. Change font size to 14 for center node and 12 for satellite nodes.
250
+
251
+ To create a radial arrangement and update the font sizes, modify the code in your self_care_app.py file as follows:
252
+
253
+ python
254
+ Copy code
255
+ import streamlit as st
256
+ import graphviz as gv
257
+
258
+ st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
259
+
260
+ st.title("8 Dimensions of Self Care")
261
+
262
+ g = gv.Graph(format='svg', engine='twopi')
263
+
264
+ g.node('B', label="8 Dimensions of Self Care", shape="ellipse", fontsize="14", style="filled", fillcolor="lightblue")
265
+
266
+ dimensions = [
267
+ ('A', "🌱 Emotional\nHow we feel"),
268
+ ('C', "🙏 Spiritual\nOur beliefs"),
269
+ ('D', "💰 Financial\nHow we manage money"),
270
+ ('E', "💡 Cognitive\nHow we think"),
271
+ ('F', "🎯 Aptitudinal\nOur abilities"),
272
+ ('G', "🤝 Relational\nOur connections"),
273
+ ('H', "🌍 Environmental\nOur surroundings"),
274
+ ('I', "🏃‍♂️ Physical\nOur bodies"),
275
+ ]
276
+
277
+ for node, label in dimensions:
278
+ g.node(node, label=label, shape="ellipse", fontsize="12", style="filled", fillcolor="lightgoldenrodyellow")
279
+
280
+ for node, _ in dimensions:
281
+ g.edge('B', node)
282
+
283
+ st.graphviz_chart(g)
284
+ In this code, I changed the Graphviz engine to 'twopi', which creates a radial layout, minimizing the whitespace in the graph. I also updated the font sizes for the center node to 14 and the satellite nodes to 12 as requested.
285
+
286
+ Run the updated Streamlit application with the following command:
287
+
288
+ bash
289
+ Copy code
290
+ streamlit run self_care_app.py
291
+ The resulting radial circular diagram will have less white space and the specified font sizes.
292
+
293
+
294
+
295
+
296
+ Aaron Wacker
297
+ display all the functions in graphviz with a short description of usage
298
+
299
+ Graphviz is a versatile library with many functions. However, listing all the functions and their descriptions is beyond the scope of a simple answer. Instead, I'll provide you with an overview of the most common functions used in the Graphviz Python library and their usage.
300
+
301
+ Graph: Creates a new Graph object. This object represents a graph or a digraph (directed graph) and can be used to add nodes and edges.
302
+
303
+ python
304
+ Copy code
305
+ import graphviz as gv
306
+ g = gv.Graph(format='svg')
307
+ Digraph: Creates a new Digraph object. This object represents a directed graph specifically and can also be used to add nodes and edges.
308
+
309
+ python
310
+ Copy code
311
+ import graphviz as gv
312
+ dg = gv.Digraph(format='svg')
313
+ add_node or node: Adds a new node to the graph or digraph.
314
+
315
+ python
316
+ Copy code
317
+ g.node('A', label='Node A')
318
+ add_edge or edge: Adds a new edge between two nodes in the graph or digraph.
319
+
320
+ python
321
+ Copy code
322
+ g.edge('A', 'B')
323
+ render: Renders the graph or digraph and saves it to a file with the specified format.
324
+
325
+ python
326
+ Copy code
327
+ g.render('output.gv', view=True)
328
+ view: Opens the rendered file using the default viewer for the specified format.
329
+
330
+ python
331
+ Copy code
332
+ g.view()
333
+ attr: Sets the default attributes for nodes and edges in the graph or digraph.
334
+
335
+ python
336
+ Copy code
337
+ g.attr(rankdir='LR', size='8,5')
338
+ g.node_attr.update(color='lightblue2', style='filled')
339
+ g.edge_attr.update(color='grey')
340
+ These are the most commonly used functions in the Graphviz Python library. For more information, you can refer to the official Graphviz Python documentation: https://graphviz.readthedocs.io/en/stable/manual.html
341
+
342
+
343
+
344
+
345
+ Aaron Wacker
346
+ For each four point list numbered below, move those to markdown tables that are four columns wide by one column high.
347
+ st.markdown("""
348
+ # Positive Reframing Strategies for Self Care
349
+ ## 🌱 Emotional - How we feel
350
+ 1. Practice gratitude
351
+ 2. Focus on the present moment
352
+ 3. Use positive affirmations
353
+ 4. Surround yourself with positivity
354
+ ## 🙏 Spiritual - Our beliefs
355
+ 1. Engage in regular meditation or prayer
356
+ 2. Connect with nature
357
+ 3. Practice forgiveness and self-compassion
358
+ 4. Attend spiritual gatherings or join a spiritual community
359
+ ## 💰 Financial - How we manage money
360
+ 1. Create a realistic budget
361
+ 2. Set achievable financial goals
362
+ 3. Prioritize paying off debts
363
+ 4. Invest in your future
364
+ ## 💡 Cognitive - How we think
365
+ 1. Challenge negative thoughts
366
+ 2. Practice mindfulness
367
+ 3. Set achievable personal goals
368
+ 4. Engage in lifelong learning
369
+ ## 🎯 Aptitudinal - Our abilities
370
+ 1. Identify and develop your strengths
371
+ 2. Set realistic expectations
372
+ 3. Embrace failure as a learning opportunity
373
+ 4. Seek out opportunities for personal growth
374
+ ## 🤝 Relational - Our connections
375
+ 1. Nurture positive relationships
376
+ 2. Communicate openly and honestly
377
+ 3. Practice empathy and active listening
378
+ 4. Set healthy boundaries
379
+ ## 🌍 Environmental - Our surroundings
380
+ 1. Create a calming and organized living space
381
+ 2. Spend time in nature
382
+ 3. Reduce exposure to environmental stressors
383
+ 4. Practice sustainable living
384
+ ## 🏃‍♂️ Physical - Our bodies
385
+ 1. Engage in regular physical activity
386
+ 2. Prioritize sleep and relaxation
387
+ 3. Maintain a balanced and nutritious diet
388
+ 4. Limit alcohol and drug consumption
389
+ """)
390
+
391
+ Here's the revised Markdown content with the lists converted to tables:
392
+
393
+ markdown
394
+ Copy code
395
+ # Positive Reframing Strategies for Self Care
396
+
397
+ ## 🌱 Emotional - How we feel
398
+ | | | | |
399
+ |------|---------------------------|-------------------------|--------------------------|
400
+ |1. |Practice gratitude |2. Focus on the present moment |3. Use positive affirmations |
401
+ |4. |Surround yourself with positivity |
402
+
403
+ ## 🙏 Spiritual - Our beliefs
404
+ | | | | |
405
+ |------|---------------------------|-------------------------|--------------------------|
406
+ |1. |Engage in regular meditation or prayer |2. Connect with nature |3. Practice forgiveness and self-compassion |
407
+ |4. |Attend spiritual gatherings or join a spiritual community |
408
+
409
+ ## 💰 Financial - How we manage money
410
+ | | | | |
411
+ |------|---------------------------|-------------------------|--------------------------|
412
+ |1. |Create a realistic budget |2. Set achievable financial goals |3. Prioritize paying off debts |
413
+ |4. |Invest in your future |
414
+
415
+ ## 💡 Cognitive - How we think
416
+ | | | | |
417
+ |------|---------------------------|-------------------------|--------------------------|
418
+ |1. |Challenge negative thoughts |2. Practice mindfulness |3. Set achievable personal goals |
419
+ |4. |Engage in lifelong learning |
420
+
421
+ ## 🎯 Aptitudinal - Our abilities
422
+ | | | | |
423
+ |------|---------------------------|-------------------------|--------------------------|
424
+ |1. |Identify and develop your strengths |2. Set realistic expectations |3. Embrace failure as a learning opportunity |
425
+ |4. |Seek out opportunities for personal growth |
426
+
427
+ ## 🤝 Relational - Our connections
428
+ | | | | |
429
+ |------|---------------------------|-------------------------|--------------------------|
430
+ |1. |Nurture positive relationships |2. Communicate openly and honestly |3. Practice empathy and active listening |
431
+ |4. |Set healthy boundaries |
432
+
433
+ ## 🌍 Environmental - Our surroundings
434
+ | | | | |
435
+ |------|---------------------------|-------------------------|--------------------------|
436
+ |1. |Create a calming and organized living space |2. Spend time in nature |3. Reduce exposure to environmental stressors |
437
+ |4. |Practice sustainable living |
438
+
439
+ ## 🏃‍♂️ Physical - Our bodies
440
+ | | | | |
441
+ |------|---------------------------|-------------------------|--------------------------|
442
+ |1. |Engage in regular physical activity |2. Prioritize sleep and relaxation |3. Maintain a balanced and nutritious diet |
443
+ |4. |Limit alcohol and drug consumption |
444
+ You can use this Markdown content in your Streamlit application with st.markdown(). The lists have been converted to 4-column-wide tables with only one row.
445
+
446
+
447
+
448
+
449
+ Aaron Wacker
450
+ change markdown tablesto five columns wide by one column high.
451
+
452
+ Here's the revised Markdown content with the tables converted to 5 columns:
453
+
454
+ markdown
455
+ Copy code
456
+ # Positive Reframing Strategies for Self Care
457
+
458
+ ## 🌱 Emotional - How we feel
459
+ | | | | | |
460
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
461
+ |1. |Practice gratitude |2. Focus on the present moment |3. Use positive affirmations |4. Surround yourself with positivity |
462
+
463
+ ## 🙏 Spiritual - Our beliefs
464
+ | | | | | |
465
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
466
+ |1. |Engage in regular meditation or prayer |2. Connect with nature |3. Practice forgiveness and self-compassion |4. Attend spiritual gatherings or join a spiritual community |
467
+
468
+ ## 💰 Financial - How we manage money
469
+ | | | | | |
470
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
471
+ |1. |Create a realistic budget |2. Set achievable financial goals |3. Prioritize paying off debts |4. Invest in your future |
472
+
473
+ ## 💡 Cognitive - How we think
474
+ | | | | | |
475
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
476
+ |1. |Challenge negative thoughts |2. Practice mindfulness |3. Set achievable personal goals |4. Engage in lifelong learning |
477
+
478
+ ## 🎯 Aptitudinal - Our abilities
479
+ | | | | | |
480
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
481
+ |1. |Identify and develop your strengths |2. Set realistic expectations |3. Embrace failure as a learning opportunity |4. Seek out opportunities for personal growth |
482
+
483
+ ## 🤝 Relational - Our connections
484
+ | | | | | |
485
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
486
+ |1. |Nurture positive relationships |2. Communicate openly and honestly |3. Practice empathy and active listening |4. Set healthy boundaries |
487
+
488
+ ## 🌍 Environmental - Our surroundings
489
+ | | | | | |
490
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
491
+ |1. |Create a calming and organized living space |2. Spend time in nature |3. Reduce exposure to environmental stressors |4. Practice sustainable living |
492
+
493
+ ## 🏃‍♂️ Physical - Our bodies
494
+ | | | | | |
495
+ |------|---------------------------|-------------------------|--------------------------|--------------------------|
496
+ |1. |Engage in regular physical activity |2. Prioritize sleep and relaxation |3. Maintain a balanced and nutritious diet |4. Limit alcohol and drug consumption |
497
+ You can use this Markdown content in your Streamlit application with st.markdown(). The tables have been converted to 5-column-wide tables with only one row.
498
+
499
+
500
+
501
+
502
+ Aaron Wacker
503
+ move the markdown titles into another cell at the front of the table so each table shows only one line.
504
+
505
+ Here's the revised Markdown content with the titles moved to the front of the tables, and each table is now only one row:
506
+
507
+ markdown
508
+ Copy code
509
+ # Positive Reframing Strategies for Self Care
510
+
511
+ | 🌱 Emotional - How we feel | | | | |
512
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
513
+ |1. Practice gratitude |2. Focus on the present moment |3. Use positive affirmations |4. Surround yourself with positivity |
514
+
515
+
516
+ | 🙏 Spiritual - Our beliefs | | | | |
517
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
518
+ |1. Engage in regular meditation or prayer |2. Connect with nature |3. Practice forgiveness and self-compassion |4. Attend spiritual gatherings or join a spiritual community |
519
+
520
+
521
+ | 💰 Financial - How we manage money | | | | |
522
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
523
+ |1. Create a realistic budget |2. Set achievable financial goals |3. Prioritize paying off debts |4. Invest in your future |
524
+
525
+
526
+ | 💡 Cognitive - How we think | | | | |
527
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
528
+ |1. Challenge negative thoughts |2. Practice mindfulness |3. Set achievable personal goals |4. Engage in lifelong learning |
529
+
530
+
531
+ | 🎯 Aptitudinal - Our abilities | | | | |
532
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
533
+ |1. Identify and develop your strengths |2. Set realistic expectations |3. Embrace failure as a learning opportunity |4. Seek out opportunities for personal growth |
534
+
535
+
536
+ | 🤝 Relational - Our connections | | | | |
537
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
538
+ |1. Nurture positive relationships |2. Communicate openly and honestly |3. Practice empathy and active listening |4. Set healthy boundaries |
539
+
540
+
541
+ | 🌍 Environmental - Our surroundings | | | | |
542
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
543
+ |1. Create a calming and organized living space |2. Spend time in nature |3. Reduce exposure to environmental stressors |4. Practice sustainable living |
544
+
545
+
546
+ | 🏃‍♂️ Physical - Our bodies | | | | |
547
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
548
+ |1. Engage in regular physical activity |2. Prioritize sleep and relaxation |3. Maintain a balanced and nutritious diet |4. Limit alcohol and drug consumption |
549
+ You can use this Markdown content in your Streamlit application with st.markdown(). The titles have been moved to the front of the tables, and each table is now only one row.
550
+
551
+
552
+
553
+
554
+ Aaron Wacker
555
+ consolidate each table so the title appears in the left most column and all tables are only one line with no header. Each row should be five columns
556
+
557
+ Here's the revised Markdown content with the titles in the left-most column, and each table is now only one row with no header:
558
+
559
+ markdown
560
+ Copy code
561
+ # Positive Reframing Strategies for Self Care
562
+
563
+ | 🌱 Emotional - How we feel | 1. Practice gratitude | 2. Focus on the present moment | 3. Use positive affirmations | 4. Surround yourself with positivity |
564
+ |---------------------------------|---------------------------|--------------------------------|--------------------------|--------------------------|
565
+ | 🙏 Spiritual - Our beliefs | 1. Engage in regular meditation or prayer | 2. Connect with nature | 3. Practice forgiveness and self-compassion | 4. Attend spiritual gatherings or join a spiritual community |
566
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
567
+ | 💰 Financial - How we manage money | 1. Create a realistic budget | 2. Set achievable financial goals | 3. Prioritize paying off debts | 4. Invest in your future |
568
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
569
+ | 💡 Cognitive - How we think | 1. Challenge negative thoughts | 2. Practice mindfulness | 3. Set achievable personal goals | 4. Engage in lifelong learning |
570
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
571
+ | 🎯 Aptitudinal - Our abilities | 1. Identify and develop your strengths | 2. Set realistic expectations | 3. Embrace failure as a learning opportunity | 4. Seek out opportunities for personal growth |
572
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
573
+ | 🤝 Relational - Our connections | 1. Nurture positive relationships | 2. Communicate openly and honestly | 3. Practice empathy and active listening | 4. Set healthy boundaries |
574
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
575
+ | 🌍 Environmental - Our surroundings | 1. Create a calming and organized living space | 2. Spend time in nature | 3. Reduce exposure to environmental stressors | 4. Practice sustainable living |
576
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
577
+ | 🏃‍♂️ Physical - Our bodies | 1. Engage in regular physical activity | 2. Prioritize sleep and relaxation | 3. Maintain a balanced and nutritious diet | 4. Limit alcohol and drug consumption |
578
+ You can use this Markdown content in your Streamlit application with st.markdown(). The titles are now in the left-most column, and each table is only one row with no header. Each row has five columns.
app.py ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import graphviz as gv
3
+
4
+
5
+ st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
6
+ st.title("🌟 Self Care 🌟")
7
+ st.markdown("#### Take Charge of Your Personal Health")
8
+
9
+ st.markdown("""
10
+
11
+ | 🧘‍♂️Self Care💪🏽 | Tip 1 | Tip 2 | Tip 3 | Tip 4 |
12
+ |---------------------------------|---------------------------|--------------------------------|--------------------------|--------------------------|
13
+ | 🌱 Emotional - How we feel | 1. Practice gratitude | 2. Focus on the present moment | 3. Use positive affirmations | 4. Surround yourself with positivity |
14
+ | 🙏 Spiritual - Our beliefs | 1. Engage in regular meditation or prayer | 2. Connect with nature | 3. Practice forgiveness and self-compassion | 4. Attend spiritual gatherings or join a spiritual community |
15
+ | 💰 Financial - How we manage money | 1. Create a realistic budget | 2. Set achievable financial goals | 3. Prioritize paying off debts | 4. Invest in your future |
16
+ | 💡 Cognitive - How we think | 1. Challenge negative thoughts | 2. Practice mindfulness | 3. Set achievable personal goals | 4. Engage in lifelong learning |
17
+ | 🎯 Aptitudinal - Our abilities | 1. Identify and develop your strengths | 2. Set realistic expectations | 3. Embrace failure as a learning opportunity | 4. Seek out opportunities for personal growth |
18
+ | 🤝 Relational - Our connections | 1. Nurture positive relationships | 2. Communicate openly and honestly | 3. Practice empathy and active listening | 4. Set healthy boundaries |
19
+ | 🌍 Environmental - Our surroundings | 1. Create a calming and organized living space | 2. Spend time in nature | 3. Reduce exposure to environmental stressors | 4. Practice sustainable living |
20
+ | 🏃‍♂️ Physical - Our bodies | 1. Engage in regular physical activity | 2. Prioritize sleep and relaxation | 3. Maintain a balanced and nutritious diet | 4. Limit alcohol and drug consumption |
21
+
22
+ """)
23
+
24
+
25
+ st.markdown("""
26
+
27
+ # Positive Reframing Strategies for Self Care
28
+
29
+ ## 🌱 Emotional - How we feel
30
+ 1. Practice gratitude
31
+ 2. Focus on the present moment
32
+ 3. Use positive affirmations
33
+ 4. Surround yourself with positivity
34
+
35
+ ## 🙏 Spiritual - Our beliefs
36
+ 1. Engage in regular meditation or prayer
37
+ 2. Connect with nature
38
+ 3. Practice forgiveness and self-compassion
39
+ 4. Attend spiritual gatherings or join a spiritual community
40
+
41
+ ## 💰 Financial - How we manage money
42
+ 1. Create a realistic budget
43
+ 2. Set achievable financial goals
44
+ 3. Prioritize paying off debts
45
+ 4. Invest in your future
46
+
47
+ ## 💡 Cognitive - How we think
48
+ 1. Challenge negative thoughts
49
+ 2. Practice mindfulness
50
+ 3. Set achievable personal goals
51
+ 4. Engage in lifelong learning
52
+
53
+ ## 🎯 Aptitudinal - Our abilities
54
+ 1. Identify and develop your strengths
55
+ 2. Set realistic expectations
56
+ 3. Embrace failure as a learning opportunity
57
+ 4. Seek out opportunities for personal growth
58
+
59
+ ## 🤝 Relational - Our connections
60
+ 1. Nurture positive relationships
61
+ 2. Communicate openly and honestly
62
+ 3. Practice empathy and active listening
63
+ 4. Set healthy boundaries
64
+
65
+ ## 🌍 Environmental - Our surroundings
66
+ 1. Create a calming and organized living space
67
+ 2. Spend time in nature
68
+ 3. Reduce exposure to environmental stressors
69
+ 4. Practice sustainable living
70
+
71
+ ## 🏃‍♂️ Physical - Our bodies
72
+ 1. Engage in regular physical activity
73
+ 2. Prioritize sleep and relaxation
74
+ 3. Maintain a balanced and nutritious diet
75
+ 4. Limit alcohol and drug consumption
76
+
77
+ """)
78
+
79
+
80
+
81
+ st.markdown("""
82
+ # Positive Reframing Strategies for Self Care
83
+
84
+ | 🌱 Emotional - How we feel | | | | |
85
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
86
+ |1. Practice gratitude |2. Focus on the present moment |3. Use positive affirmations |4. Surround yourself with positivity |
87
+
88
+
89
+ | 🙏 Spiritual - Our beliefs | | | | |
90
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
91
+ |1. Engage in regular meditation or prayer |2. Connect with nature |3. Practice forgiveness and self-compassion |4. Attend spiritual gatherings or join a spiritual community |
92
+
93
+
94
+ | 💰 Financial - How we manage money | | | | |
95
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
96
+ |1. Create a realistic budget |2. Set achievable financial goals |3. Prioritize paying off debts |4. Invest in your future |
97
+
98
+
99
+ | 💡 Cognitive - How we think | | | | |
100
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
101
+ |1. Challenge negative thoughts |2. Practice mindfulness |3. Set achievable personal goals |4. Engage in lifelong learning |
102
+
103
+
104
+ | 🎯 Aptitudinal - Our abilities | | | | |
105
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
106
+ |1. Identify and develop your strengths |2. Set realistic expectations |3. Embrace failure as a learning opportunity |4. Seek out opportunities for personal growth |
107
+
108
+
109
+ | 🤝 Relational - Our connections | | | | |
110
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
111
+ |1. Nurture positive relationships |2. Communicate openly and honestly |3. Practice empathy and active listening |4. Set healthy boundaries |
112
+
113
+
114
+ | 🌍 Environmental - Our surroundings | | | | |
115
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
116
+ |1. Create a calming and organized living space |2. Spend time in nature |3. Reduce exposure to environmental stressors |4. Practice sustainable living |
117
+
118
+
119
+ | 🏃‍♂️ Physical - Our bodies | | | | |
120
+ |---------------------------------|---------------------------|-------------------------|--------------------------|--------------------------|
121
+ |1. Engage in regular physical activity |2. Prioritize sleep and relaxation |3. Maintain a balanced and nutritious diet |4. Limit alcohol and drug consumption |
122
+
123
+ """)
124
+
125
+
126
+
127
+
128
+ g = gv.Graph(format='svg', engine='circo')
129
+
130
+ g.node('B', label="8 Dimensions of Self Care", shape="ellipse", fontsize="20", style="filled", fillcolor="lightblue")
131
+
132
+ dimensions = [
133
+ ('A', "🌱 Emotional\nHow we feel"),
134
+ ('C', "🙏 Spiritual\nOur beliefs"),
135
+ ('D', "💰 Financial\nHow we manage money"),
136
+ ('E', "💡 Cognitive\nHow we think"),
137
+ ('F', "🎯 Aptitudinal\nOur abilities"),
138
+ ('G', "🤝 Relational\nOur connections"),
139
+ ('H', "🌍 Environmental\nOur surroundings"),
140
+ ('I', "🏃‍♂️ Physical\nOur bodies"),
141
+ ]
142
+
143
+ for node, label in dimensions:
144
+ g.node(node, label=label, shape="ellipse", fontsize="16", style="filled", fillcolor="lightgoldenrodyellow")
145
+
146
+ for node, _ in dimensions:
147
+ g.edge('B', node)
148
+
149
+ st.graphviz_chart(g)
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ streamlit
2
+ graphviz