Hopsakee commited on
Commit
d1b6a3a
·
1 Parent(s): 403335b
app_starter_gui/core.py CHANGED
@@ -1,5 +1,3 @@
1
- """Core functionality for button management"""
2
-
3
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
4
 
5
  # %% auto 0
 
 
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
2
 
3
  # %% auto 0
app_starter_gui/css.py CHANGED
@@ -1,5 +1,3 @@
1
- """CSS generation for button styling"""
2
-
3
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/01_css.ipynb.
4
 
5
  # %% auto 0
 
 
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/01_css.ipynb.
2
 
3
  # %% auto 0
app_starter_gui/gradio_app.py CHANGED
@@ -1,5 +1,3 @@
1
- """Creation of the Gradio GUI for the app"""
2
-
3
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/02_gradio_app.ipynb.
4
 
5
  # %% auto 0
 
 
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/02_gradio_app.ipynb.
2
 
3
  # %% auto 0
nbs/00_core.ipynb CHANGED
@@ -1,17 +1,21 @@
1
  {
2
  "cells": [
3
  {
4
- "cell_type": "markdown",
5
  "metadata": {},
6
  "source": [
7
- "# core\n",
 
 
 
8
  "\n",
9
- "> Core functionality for button management"
 
10
  ]
11
  },
12
  {
13
  "cell_type": "code",
14
- "execution_count": 11,
15
  "metadata": {},
16
  "outputs": [],
17
  "source": [
@@ -20,7 +24,7 @@
20
  },
21
  {
22
  "cell_type": "code",
23
- "execution_count": 21,
24
  "metadata": {},
25
  "outputs": [],
26
  "source": [
@@ -33,7 +37,7 @@
33
  },
34
  {
35
  "cell_type": "code",
36
- "execution_count": 13,
37
  "metadata": {},
38
  "outputs": [],
39
  "source": [
@@ -43,7 +47,7 @@
43
  },
44
  {
45
  "cell_type": "code",
46
- "execution_count": 14,
47
  "metadata": {},
48
  "outputs": [],
49
  "source": [
@@ -59,7 +63,7 @@
59
  },
60
  {
61
  "cell_type": "code",
62
- "execution_count": 15,
63
  "metadata": {},
64
  "outputs": [],
65
  "source": [
@@ -78,7 +82,7 @@
78
  },
79
  {
80
  "cell_type": "code",
81
- "execution_count": 16,
82
  "metadata": {},
83
  "outputs": [],
84
  "source": [
@@ -100,7 +104,7 @@
100
  },
101
  {
102
  "cell_type": "code",
103
- "execution_count": 17,
104
  "metadata": {},
105
  "outputs": [],
106
  "source": [
@@ -129,7 +133,7 @@
129
  },
130
  {
131
  "cell_type": "code",
132
- "execution_count": 22,
133
  "metadata": {},
134
  "outputs": [],
135
  "source": [
@@ -156,7 +160,7 @@
156
  },
157
  {
158
  "cell_type": "code",
159
- "execution_count": 19,
160
  "metadata": {},
161
  "outputs": [],
162
  "source": [
@@ -166,7 +170,7 @@
166
  },
167
  {
168
  "cell_type": "code",
169
- "execution_count": 20,
170
  "metadata": {},
171
  "outputs": [],
172
  "source": [
@@ -177,21 +181,9 @@
177
  ],
178
  "metadata": {
179
  "kernelspec": {
180
- "display_name": ".venv",
181
  "language": "python",
182
  "name": "python3"
183
- },
184
- "language_info": {
185
- "codemirror_mode": {
186
- "name": "ipython",
187
- "version": 3
188
- },
189
- "file_extension": ".py",
190
- "mimetype": "text/x-python",
191
- "name": "python",
192
- "nbconvert_exporter": "python",
193
- "pygments_lexer": "ipython3",
194
- "version": "3.11.0rc1"
195
  }
196
  },
197
  "nbformat": 4,
 
1
  {
2
  "cells": [
3
  {
4
+ "cell_type": "raw",
5
  "metadata": {},
6
  "source": [
7
+ "---\n",
8
+ "description: Core functionality for button management\n",
9
+ "output-file: core.html\n",
10
+ "title: core\n",
11
  "\n",
12
+ "---\n",
13
+ "\n"
14
  ]
15
  },
16
  {
17
  "cell_type": "code",
18
+ "execution_count": null,
19
  "metadata": {},
20
  "outputs": [],
21
  "source": [
 
24
  },
25
  {
26
  "cell_type": "code",
27
+ "execution_count": null,
28
  "metadata": {},
29
  "outputs": [],
30
  "source": [
 
37
  },
38
  {
39
  "cell_type": "code",
40
+ "execution_count": null,
41
  "metadata": {},
42
  "outputs": [],
43
  "source": [
 
47
  },
48
  {
49
  "cell_type": "code",
50
+ "execution_count": null,
51
  "metadata": {},
52
  "outputs": [],
53
  "source": [
 
63
  },
64
  {
65
  "cell_type": "code",
66
+ "execution_count": null,
67
  "metadata": {},
68
  "outputs": [],
69
  "source": [
 
82
  },
83
  {
84
  "cell_type": "code",
85
+ "execution_count": null,
86
  "metadata": {},
87
  "outputs": [],
88
  "source": [
 
104
  },
105
  {
106
  "cell_type": "code",
107
+ "execution_count": null,
108
  "metadata": {},
109
  "outputs": [],
110
  "source": [
 
133
  },
134
  {
135
  "cell_type": "code",
136
+ "execution_count": null,
137
  "metadata": {},
138
  "outputs": [],
139
  "source": [
 
160
  },
161
  {
162
  "cell_type": "code",
163
+ "execution_count": null,
164
  "metadata": {},
165
  "outputs": [],
166
  "source": [
 
170
  },
171
  {
172
  "cell_type": "code",
173
+ "execution_count": null,
174
  "metadata": {},
175
  "outputs": [],
176
  "source": [
 
181
  ],
182
  "metadata": {
183
  "kernelspec": {
184
+ "display_name": "python3",
185
  "language": "python",
186
  "name": "python3"
 
 
 
 
 
 
 
 
 
 
 
 
187
  }
188
  },
189
  "nbformat": 4,
nbs/01_css.ipynb CHANGED
@@ -1,16 +1,21 @@
1
  {
2
  "cells": [
3
  {
4
- "cell_type": "markdown",
5
  "metadata": {},
6
  "source": [
7
- "# CSS\n",
8
- "> CSS generation for button styling"
 
 
 
 
 
9
  ]
10
  },
11
  {
12
  "cell_type": "code",
13
- "execution_count": 1,
14
  "metadata": {},
15
  "outputs": [],
16
  "source": [
@@ -19,18 +24,18 @@
19
  },
20
  {
21
  "cell_type": "code",
22
- "execution_count": 2,
23
  "metadata": {},
24
  "outputs": [
25
  {
26
  "ename": "ModuleNotFoundError",
27
- "evalue": "No module named 'app_starter_gui.core'",
28
  "output_type": "error",
29
  "traceback": [
30
  "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
31
  "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
32
- "Cell \u001b[0;32mIn[2], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m#| hide\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mapp_starter_gui\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcore\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m Button\n\u001b[1;32m 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mfastcore\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mtest\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m \u001b[38;5;66;03m# for test_assert\u001b[39;00m\n",
33
- "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'app_starter_gui.core'"
34
  ]
35
  }
36
  ],
@@ -43,7 +48,7 @@
43
  },
44
  {
45
  "cell_type": "code",
46
- "execution_count": 2,
47
  "metadata": {},
48
  "outputs": [],
49
  "source": [
@@ -52,7 +57,7 @@
52
  },
53
  {
54
  "cell_type": "code",
55
- "execution_count": 3,
56
  "metadata": {},
57
  "outputs": [],
58
  "source": [
@@ -131,7 +136,7 @@
131
  },
132
  {
133
  "cell_type": "code",
134
- "execution_count": 5,
135
  "metadata": {},
136
  "outputs": [
137
  {
@@ -159,7 +164,7 @@
159
  },
160
  {
161
  "cell_type": "code",
162
- "execution_count": 4,
163
  "metadata": {},
164
  "outputs": [
165
  {
@@ -206,21 +211,9 @@
206
  ],
207
  "metadata": {
208
  "kernelspec": {
209
- "display_name": ".venv",
210
  "language": "python",
211
  "name": "python3"
212
- },
213
- "language_info": {
214
- "codemirror_mode": {
215
- "name": "ipython",
216
- "version": 3
217
- },
218
- "file_extension": ".py",
219
- "mimetype": "text/x-python",
220
- "name": "python",
221
- "nbconvert_exporter": "python",
222
- "pygments_lexer": "ipython3",
223
- "version": "3.11.0rc1"
224
  }
225
  },
226
  "nbformat": 4,
 
1
  {
2
  "cells": [
3
  {
4
+ "cell_type": "raw",
5
  "metadata": {},
6
  "source": [
7
+ "---\n",
8
+ "description: CSS generation for button styling\n",
9
+ "output-file: css.html\n",
10
+ "title: CSS\n",
11
+ "\n",
12
+ "---\n",
13
+ "\n"
14
  ]
15
  },
16
  {
17
  "cell_type": "code",
18
+ "execution_count": null,
19
  "metadata": {},
20
  "outputs": [],
21
  "source": [
 
24
  },
25
  {
26
  "cell_type": "code",
27
+ "execution_count": null,
28
  "metadata": {},
29
  "outputs": [
30
  {
31
  "ename": "ModuleNotFoundError",
32
+ "evalue": "No module named 'app_starter_gui'",
33
  "output_type": "error",
34
  "traceback": [
35
  "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
36
  "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
37
+ "Cell \u001b[0;32mIn[1], line 3\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m#| export\u001b[39;00m\n\u001b[1;32m 2\u001b[0m \u001b[38;5;66;03m#| hide\u001b[39;00m\n\u001b[0;32m----> 3\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mapp_starter_gui\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcore\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m Button\n\u001b[1;32m 4\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mfastcore\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mtest\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m \u001b[38;5;66;03m# for test_assert\u001b[39;00m\n",
38
+ "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'app_starter_gui'"
39
  ]
40
  }
41
  ],
 
48
  },
49
  {
50
  "cell_type": "code",
51
+ "execution_count": null,
52
  "metadata": {},
53
  "outputs": [],
54
  "source": [
 
57
  },
58
  {
59
  "cell_type": "code",
60
+ "execution_count": null,
61
  "metadata": {},
62
  "outputs": [],
63
  "source": [
 
136
  },
137
  {
138
  "cell_type": "code",
139
+ "execution_count": null,
140
  "metadata": {},
141
  "outputs": [
142
  {
 
164
  },
165
  {
166
  "cell_type": "code",
167
+ "execution_count": null,
168
  "metadata": {},
169
  "outputs": [
170
  {
 
211
  ],
212
  "metadata": {
213
  "kernelspec": {
214
+ "display_name": "python3",
215
  "language": "python",
216
  "name": "python3"
 
 
 
 
 
 
 
 
 
 
 
 
217
  }
218
  },
219
  "nbformat": 4,
nbs/02_gradio_app.ipynb CHANGED
@@ -1,16 +1,21 @@
1
  {
2
  "cells": [
3
  {
4
- "cell_type": "markdown",
5
  "metadata": {},
6
  "source": [
7
- "# gradio_app\n",
8
- "> Creation of the Gradio GUI for the app"
 
 
 
 
 
9
  ]
10
  },
11
  {
12
  "cell_type": "code",
13
- "execution_count": 1,
14
  "metadata": {},
15
  "outputs": [],
16
  "source": [
@@ -19,7 +24,7 @@
19
  },
20
  {
21
  "cell_type": "code",
22
- "execution_count": 2,
23
  "metadata": {},
24
  "outputs": [
25
  {
@@ -124,21 +129,9 @@
124
  ],
125
  "metadata": {
126
  "kernelspec": {
127
- "display_name": ".venv",
128
  "language": "python",
129
  "name": "python3"
130
- },
131
- "language_info": {
132
- "codemirror_mode": {
133
- "name": "ipython",
134
- "version": 3
135
- },
136
- "file_extension": ".py",
137
- "mimetype": "text/x-python",
138
- "name": "python",
139
- "nbconvert_exporter": "python",
140
- "pygments_lexer": "ipython3",
141
- "version": "3.11.0rc1"
142
  }
143
  },
144
  "nbformat": 4,
 
1
  {
2
  "cells": [
3
  {
4
+ "cell_type": "raw",
5
  "metadata": {},
6
  "source": [
7
+ "---\n",
8
+ "description: Creation of the Gradio GUI for the app\n",
9
+ "output-file: gradio_app.html\n",
10
+ "title: gradio_app\n",
11
+ "\n",
12
+ "---\n",
13
+ "\n"
14
  ]
15
  },
16
  {
17
  "cell_type": "code",
18
+ "execution_count": null,
19
  "metadata": {},
20
  "outputs": [],
21
  "source": [
 
24
  },
25
  {
26
  "cell_type": "code",
27
+ "execution_count": null,
28
  "metadata": {},
29
  "outputs": [
30
  {
 
129
  ],
130
  "metadata": {
131
  "kernelspec": {
132
+ "display_name": "python3",
133
  "language": "python",
134
  "name": "python3"
 
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
  },
137
  "nbformat": 4,
nbs/index.ipynb CHANGED
@@ -1,22 +1,48 @@
1
  {
2
  "cells": [
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  {
4
  "cell_type": "code",
5
  "execution_count": null,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
9
- "#| hide\n",
10
- "from app_starter_gui.core import *"
11
  ]
12
  },
13
  {
14
- "cell_type": "markdown",
 
15
  "metadata": {},
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  "source": [
17
- "# Hopsakee/app_starter_gui\n",
18
- "\n",
19
- "> A simple GUI to quickly switch to URL-apps I often use."
20
  ]
21
  },
22
  {
@@ -146,7 +172,7 @@
146
  },
147
  {
148
  "cell_type": "code",
149
- "execution_count": 4,
150
  "metadata": {},
151
  "outputs": [
152
  {
@@ -156,11 +182,20 @@
156
  "traceback": [
157
  "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
158
  "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
159
- "Cell \u001b[0;32mIn[4], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mapp_starter_gui\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcore\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m Button \n\u001b[1;32m 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mapp_starter_gui\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mgradio_app\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m create_app\n",
160
  "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'app_starter_gui'"
161
  ]
162
  }
163
  ],
 
 
 
 
 
 
 
 
 
164
  "source": [
165
  "from app_starter_gui.core import Button \n",
166
  "from app_starter_gui.gradio_app import create_app"
@@ -177,21 +212,9 @@
177
  },
178
  {
179
  "cell_type": "code",
180
- "execution_count": 2,
181
  "metadata": {},
182
- "outputs": [
183
- {
184
- "ename": "NameError",
185
- "evalue": "name 'Button' is not defined",
186
- "output_type": "error",
187
- "traceback": [
188
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
189
- "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
190
- "Cell \u001b[0;32mIn[2], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m buttons \u001b[38;5;241m=\u001b[39m [ \u001b[43mButton\u001b[49m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mChatGPT\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mchatgpt.jpg\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mhttps://chat.openai.com\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mAI\u001b[39m\u001b[38;5;124m\"\u001b[39m), Button(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mGoogle\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mgoogle.jpg\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mhttps://google.com\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSearch\u001b[39m\u001b[38;5;124m\"\u001b[39m) ]\n",
191
- "\u001b[0;31mNameError\u001b[0m: name 'Button' is not defined"
192
- ]
193
- }
194
- ],
195
  "source": [
196
  "buttons = [ Button(\"ChatGPT\", \"chatgpt.jpg\", \"https://chat.openai.com\", \"AI\"), Button(\"Google\", \"google.jpg\", \"https://google.com\", \"Search\") ]"
197
  ]
@@ -248,21 +271,9 @@
248
  },
249
  {
250
  "cell_type": "code",
251
- "execution_count": 3,
252
  "metadata": {},
253
- "outputs": [
254
- {
255
- "ename": "NameError",
256
- "evalue": "name 'create_app' is not defined",
257
- "output_type": "error",
258
- "traceback": [
259
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
260
- "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
261
- "Cell \u001b[0;32mIn[3], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m app \u001b[38;5;241m=\u001b[39m \u001b[43mcreate_app\u001b[49m(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mbuttons.yaml\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[1;32m 2\u001b[0m app\u001b[38;5;241m.\u001b[39mlaunch(share\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m)\n",
262
- "\u001b[0;31mNameError\u001b[0m: name 'create_app' is not defined"
263
- ]
264
- }
265
- ],
266
  "source": [
267
  "app = create_app('buttons.yaml')\n",
268
  "app.launch(share=True)"
@@ -349,21 +360,9 @@
349
  ],
350
  "metadata": {
351
  "kernelspec": {
352
- "display_name": ".venv",
353
  "language": "python",
354
  "name": "python3"
355
- },
356
- "language_info": {
357
- "codemirror_mode": {
358
- "name": "ipython",
359
- "version": 3
360
- },
361
- "file_extension": ".py",
362
- "mimetype": "text/x-python",
363
- "name": "python",
364
- "nbconvert_exporter": "python",
365
- "pygments_lexer": "ipython3",
366
- "version": "3.11.0rc1"
367
  }
368
  },
369
  "nbformat": 4,
 
1
  {
2
  "cells": [
3
+ {
4
+ "cell_type": "raw",
5
+ "metadata": {},
6
+ "source": [
7
+ "---\n",
8
+ "description: A simple GUI to quickly switch to URL-apps I often use.\n",
9
+ "output-file: index.html\n",
10
+ "title: Hopsakee/app_starter_gui\n",
11
+ "\n",
12
+ "---\n",
13
+ "\n"
14
+ ]
15
+ },
16
  {
17
  "cell_type": "code",
18
  "execution_count": null,
19
  "metadata": {},
20
  "outputs": [],
21
  "source": [
22
+ "#| default_exp _modidx"
 
23
  ]
24
  },
25
  {
26
+ "cell_type": "code",
27
+ "execution_count": null,
28
  "metadata": {},
29
+ "outputs": [
30
+ {
31
+ "ename": "ModuleNotFoundError",
32
+ "evalue": "No module named 'app_starter_gui'",
33
+ "output_type": "error",
34
+ "traceback": [
35
+ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
36
+ "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
37
+ "Cell \u001b[0;32mIn[1], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m#| hide\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mapp_starter_gui\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcore\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m\n",
38
+ "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'app_starter_gui'"
39
+ ]
40
+ }
41
+ ],
42
  "source": [
43
+ "#| export\n",
44
+ "#| hide\n",
45
+ "from app_starter_gui.core import *"
46
  ]
47
  },
48
  {
 
172
  },
173
  {
174
  "cell_type": "code",
175
+ "execution_count": null,
176
  "metadata": {},
177
  "outputs": [
178
  {
 
182
  "traceback": [
183
  "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
184
  "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
185
+ "Cell \u001b[0;32mIn[4], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mapp_starter_gui\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcore\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m Button\n",
186
  "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'app_starter_gui'"
187
  ]
188
  }
189
  ],
190
+ "source": [
191
+ "from app_starter_gui.core import Button"
192
+ ]
193
+ },
194
+ {
195
+ "cell_type": "code",
196
+ "execution_count": null,
197
+ "metadata": {},
198
+ "outputs": [],
199
  "source": [
200
  "from app_starter_gui.core import Button \n",
201
  "from app_starter_gui.gradio_app import create_app"
 
212
  },
213
  {
214
  "cell_type": "code",
215
+ "execution_count": null,
216
  "metadata": {},
217
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
218
  "source": [
219
  "buttons = [ Button(\"ChatGPT\", \"chatgpt.jpg\", \"https://chat.openai.com\", \"AI\"), Button(\"Google\", \"google.jpg\", \"https://google.com\", \"Search\") ]"
220
  ]
 
271
  },
272
  {
273
  "cell_type": "code",
274
+ "execution_count": null,
275
  "metadata": {},
276
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
277
  "source": [
278
  "app = create_app('buttons.yaml')\n",
279
  "app.launch(share=True)"
 
360
  ],
361
  "metadata": {
362
  "kernelspec": {
363
+ "display_name": "python3",
364
  "language": "python",
365
  "name": "python3"
 
 
 
 
 
 
 
 
 
 
 
 
366
  }
367
  },
368
  "nbformat": 4,
nbs/nbdev.yml CHANGED
@@ -2,8 +2,8 @@ project:
2
  output-dir: _docs
3
 
4
  website:
5
- title: "Hopsakee/app_starter_gui"
6
- site-url: "https://Hopsakee.github.io/Hopsakee/app_starter_gui"
7
  description: "A simple GUI to quickly switch to URL-apps I often use."
8
  repo-branch: main
9
- repo-url: "https://github.com/Hopsakee/Hopsakee/app_starter_gui"
 
2
  output-dir: _docs
3
 
4
  website:
5
+ title: "app_starter_gui"
6
+ site-url: "https://Hopsakee.github.io/app_starter_gui"
7
  description: "A simple GUI to quickly switch to URL-apps I often use."
8
  repo-branch: main
9
+ repo-url: "https://github.com/Hopsakee/app_starter_gui"
nbs/test.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from app_starter_gui.core import Button
test_buttons.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - app_type: Type1
2
+ image_url: img1.jpg
3
+ label: Test1
4
+ link_url: http://test1.com
5
+ - app_type: Type2
6
+ image_url: img2.jpg
7
+ label: Test2
8
+ link_url: http://test2.com