Skip to content

Commit

Permalink
Removed file viewer from educator course overview
Browse files Browse the repository at this point in the history
  • Loading branch information
namitasshah committed Apr 5, 2024
1 parent 955f7d4 commit 14aebcf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
3 changes: 1 addition & 2 deletions jupyter_mentor/educator_course_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, file_viewer):
self.file_upload = FileUpload(accept='', multiple=False)

# global file viewer (that has model)
self.file_viewer = file_viewer
#self.file_viewer = file_viewer

# Course overview text
self.course_overview_text = v.TextField(label='Course Overview:', placeholder='Enter course overview')
Expand Down Expand Up @@ -57,7 +57,6 @@ def __init__(self, file_viewer):
self.children = [
self.header, # Heading
HBox([self.file_upload]), # File upload button
self.file_viewer,
self.course_overview_text, # Course overview
self.ai_guidelines_label, # AI Guidelines
VBox([self.step_by_step_checkbox, self.metaphor_checkbox,
Expand Down
29 changes: 20 additions & 9 deletions nbs/04_educator_course_overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 54,
"id": "0320fe7e-0ec7-4dd1-90c2-74a3e25bab86",
"metadata": {},
"outputs": [],
Expand All @@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 59,
"id": "f0e47085-1303-4292-b752-0ee05eef872d",
"metadata": {},
"outputs": [],
Expand All @@ -43,7 +43,7 @@
" self.file_upload = FileUpload(accept='', multiple=False)\n",
"\n",
" # global file viewer (that has model)\n",
" self.file_viewer = file_viewer\n",
" #self.file_viewer = file_viewer\n",
" \n",
" # Course overview text\n",
" self.course_overview_text = v.TextField(label='Course Overview:', placeholder='Enter course overview')\n",
Expand Down Expand Up @@ -79,7 +79,6 @@
" self.children = [\n",
" self.header, # Heading\n",
" HBox([self.file_upload]), # File upload button\n",
" self.file_viewer,\n",
" self.course_overview_text, # Course overview\n",
" self.ai_guidelines_label, # AI Guidelines\n",
" VBox([self.step_by_step_checkbox, self.metaphor_checkbox,\n",
Expand All @@ -91,22 +90,22 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 60,
"id": "54fb4f23-dabc-4109-a482-feee5c130f36",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bc686214fda847ccabdeac24bd13a0b9",
"model_id": "7dfa2b4a73e240a78060c514e3c1cc29",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"EducatorCourseOverview(children=(Container(children=[Html(attributes={'title': 'a title'}, children=['Educator…"
]
},
"execution_count": null,
"execution_count": 60,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -119,7 +118,7 @@
},
{
"cell_type": "code",
"execution_count": 53,
"execution_count": 61,
"id": "11872b33-a907-4acb-9537-0a2f4237d791",
"metadata": {},
"outputs": [],
Expand All @@ -139,9 +138,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.19"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 14aebcf

Please sign in to comment.