Skip to content

Commit 14aebcf

Browse files
committed
Removed file viewer from educator course overview
1 parent 955f7d4 commit 14aebcf

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

jupyter_mentor/educator_course_overview.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, file_viewer):
2121
self.file_upload = FileUpload(accept='', multiple=False)
2222

2323
# global file viewer (that has model)
24-
self.file_viewer = file_viewer
24+
#self.file_viewer = file_viewer
2525

2626
# Course overview text
2727
self.course_overview_text = v.TextField(label='Course Overview:', placeholder='Enter course overview')
@@ -57,7 +57,6 @@ def __init__(self, file_viewer):
5757
self.children = [
5858
self.header, # Heading
5959
HBox([self.file_upload]), # File upload button
60-
self.file_viewer,
6160
self.course_overview_text, # Course overview
6261
self.ai_guidelines_label, # AI Guidelines
6362
VBox([self.step_by_step_checkbox, self.metaphor_checkbox,

nbs/04_educator_course_overview.ipynb

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
{
1414
"cell_type": "code",
15-
"execution_count": null,
15+
"execution_count": 54,
1616
"id": "0320fe7e-0ec7-4dd1-90c2-74a3e25bab86",
1717
"metadata": {},
1818
"outputs": [],
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": null,
31+
"execution_count": 59,
3232
"id": "f0e47085-1303-4292-b752-0ee05eef872d",
3333
"metadata": {},
3434
"outputs": [],
@@ -43,7 +43,7 @@
4343
" self.file_upload = FileUpload(accept='', multiple=False)\n",
4444
"\n",
4545
" # global file viewer (that has model)\n",
46-
" self.file_viewer = file_viewer\n",
46+
" #self.file_viewer = file_viewer\n",
4747
" \n",
4848
" # Course overview text\n",
4949
" self.course_overview_text = v.TextField(label='Course Overview:', placeholder='Enter course overview')\n",
@@ -79,7 +79,6 @@
7979
" self.children = [\n",
8080
" self.header, # Heading\n",
8181
" HBox([self.file_upload]), # File upload button\n",
82-
" self.file_viewer,\n",
8382
" self.course_overview_text, # Course overview\n",
8483
" self.ai_guidelines_label, # AI Guidelines\n",
8584
" VBox([self.step_by_step_checkbox, self.metaphor_checkbox,\n",
@@ -91,22 +90,22 @@
9190
},
9291
{
9392
"cell_type": "code",
94-
"execution_count": null,
93+
"execution_count": 60,
9594
"id": "54fb4f23-dabc-4109-a482-feee5c130f36",
9695
"metadata": {},
9796
"outputs": [
9897
{
9998
"data": {
10099
"application/vnd.jupyter.widget-view+json": {
101-
"model_id": "bc686214fda847ccabdeac24bd13a0b9",
100+
"model_id": "7dfa2b4a73e240a78060c514e3c1cc29",
102101
"version_major": 2,
103102
"version_minor": 0
104103
},
105104
"text/plain": [
106105
"EducatorCourseOverview(children=(Container(children=[Html(attributes={'title': 'a title'}, children=['Educator…"
107106
]
108107
},
109-
"execution_count": null,
108+
"execution_count": 60,
110109
"metadata": {},
111110
"output_type": "execute_result"
112111
}
@@ -119,7 +118,7 @@
119118
},
120119
{
121120
"cell_type": "code",
122-
"execution_count": 53,
121+
"execution_count": 61,
123122
"id": "11872b33-a907-4acb-9537-0a2f4237d791",
124123
"metadata": {},
125124
"outputs": [],
@@ -139,9 +138,21 @@
139138
],
140139
"metadata": {
141140
"kernelspec": {
142-
"display_name": "python3",
141+
"display_name": "Python 3 (ipykernel)",
143142
"language": "python",
144143
"name": "python3"
144+
},
145+
"language_info": {
146+
"codemirror_mode": {
147+
"name": "ipython",
148+
"version": 3
149+
},
150+
"file_extension": ".py",
151+
"mimetype": "text/x-python",
152+
"name": "python",
153+
"nbconvert_exporter": "python",
154+
"pygments_lexer": "ipython3",
155+
"version": "3.8.19"
145156
}
146157
},
147158
"nbformat": 4,

0 commit comments

Comments
 (0)