-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
669e611
commit 5df81d4
Showing
6 changed files
with
242 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/14_student_course_overview.ipynb. | ||
|
||
# %% auto 0 | ||
__all__ = ['StudentCourseOverview'] | ||
|
||
# %% ../nbs/14_student_course_overview.ipynb 1 | ||
from .file_viewer import FileViewer | ||
import ipywidgets as widgets | ||
from ipywidgets import VBox, HBox, HTML, Button, Label, Text, Checkbox, Accordion, FileUpload | ||
from IPython.display import display, clear_output | ||
import ipyvuetify as v | ||
from traitlets import observe | ||
|
||
# %% ../nbs/14_student_course_overview.ipynb 2 | ||
class StudentCourseOverview(VBox): | ||
|
||
def __init__(self, file_viewer): | ||
super().__init__() | ||
|
||
# File Upload button | ||
self.file_upload = FileUpload(accept='', multiple=False) | ||
self.file_upload_button = Button(description='Upload') | ||
|
||
# global file viewer (that has model) | ||
self.file_viewer = file_viewer | ||
|
||
# Course overview text | ||
self.course_overview_label = Label('Course Overview:') | ||
self.course_overview_text = Text(placeholder='Enter course overview') | ||
|
||
# AI Guidelines text | ||
self.ai_guidelines_label = Label('AI Guidelines:') | ||
|
||
|
||
# Binary features checkboxes | ||
self.step_by_step_checkbox = Checkbox(description='Step-by-Step') | ||
self.metaphor_checkbox = Checkbox(description='Metaphor') | ||
self.hints_checkbox = Checkbox(description='Hints') | ||
self.ai_guided_questions_checkbox = Checkbox(description='AI Guided Questions') | ||
|
||
|
||
# Open-ended response textbox | ||
self.open_ended_label = Label('Open-ended Response:') | ||
self.open_ended_text = Text(placeholder='Enter open-ended response') | ||
|
||
# Next button | ||
self.next_button = Button(description='Next') | ||
|
||
# Arrange widgets vertically | ||
self.children = [ | ||
HTML('<h2>Course Overview</h2>'), # Heading | ||
HBox([self.file_upload, self.file_upload_button]), # File upload button | ||
self.file_viewer, | ||
self.course_overview_label, self.course_overview_text, # Course overview | ||
self.ai_guidelines_label, # AI Guidelines | ||
VBox([self.step_by_step_checkbox, self.metaphor_checkbox, | ||
self.hints_checkbox, self.ai_guided_questions_checkbox]), # Binary features checkboxes | ||
self.open_ended_label, self.open_ended_text, # Open-ended response | ||
HBox([self.next_button], layout={'justify_content': 'flex-end'}), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "b8b8cb16-2ceb-4b93-b5f5-615270d1b9b2", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| default_exp student_course_overview" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "0320fe7e-0ec7-4dd1-90c2-74a3e25bab86", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| export\n", | ||
"from jupyter_mentor.file_viewer import FileViewer\n", | ||
"import ipywidgets as widgets\n", | ||
"from ipywidgets import VBox, HBox, HTML, Button, Label, Text, Checkbox, Accordion, FileUpload\n", | ||
"from IPython.display import display, clear_output\n", | ||
"import ipyvuetify as v\n", | ||
"from traitlets import observe" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "f0e47085-1303-4292-b752-0ee05eef872d", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| export\n", | ||
"\n", | ||
"class StudentCourseOverview(VBox):\n", | ||
" \n", | ||
" def __init__(self, file_viewer):\n", | ||
" super().__init__()\n", | ||
"\n", | ||
" # File Upload button\n", | ||
" self.file_upload = FileUpload(accept='', multiple=False)\n", | ||
" self.file_upload_button = Button(description='Upload')\n", | ||
"\n", | ||
" # global file viewer (that has model)\n", | ||
" self.file_viewer = file_viewer\n", | ||
" \n", | ||
" # Course overview text\n", | ||
" self.course_overview_label = Label('Course Overview:')\n", | ||
" self.course_overview_text = Text(placeholder='Enter course overview')\n", | ||
" \n", | ||
" # AI Guidelines text\n", | ||
" self.ai_guidelines_label = Label('AI Guidelines:')\n", | ||
" \n", | ||
" \n", | ||
" # Binary features checkboxes\n", | ||
" self.step_by_step_checkbox = Checkbox(description='Step-by-Step')\n", | ||
" self.metaphor_checkbox = Checkbox(description='Metaphor')\n", | ||
" self.hints_checkbox = Checkbox(description='Hints')\n", | ||
" self.ai_guided_questions_checkbox = Checkbox(description='AI Guided Questions')\n", | ||
" \n", | ||
" \n", | ||
" # Open-ended response textbox\n", | ||
" self.open_ended_label = Label('Open-ended Response:')\n", | ||
" self.open_ended_text = Text(placeholder='Enter open-ended response')\n", | ||
"\n", | ||
" # Next button\n", | ||
" self.next_button = Button(description='Next')\n", | ||
" \n", | ||
" # Arrange widgets vertically\n", | ||
" self.children = [\n", | ||
" HTML('<h2>Course Overview</h2>'), # Heading\n", | ||
" HBox([self.file_upload, self.file_upload_button]), # File upload button\n", | ||
" self.file_viewer,\n", | ||
" self.course_overview_label, self.course_overview_text, # Course overview\n", | ||
" self.ai_guidelines_label, # AI Guidelines\n", | ||
" VBox([self.step_by_step_checkbox, self.metaphor_checkbox,\n", | ||
" self.hints_checkbox, self.ai_guided_questions_checkbox]), # Binary features checkboxes\n", | ||
" self.open_ended_label, self.open_ended_text, # Open-ended response\n", | ||
" HBox([self.next_button], layout={'justify_content': 'flex-end'}), \n", | ||
" ]" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "54fb4f23-dabc-4109-a482-feee5c130f36", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"file_viewer = FileViewer()\n", | ||
"main = StudentCourseOverview(file_viewer)\n", | ||
"main" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "55ed3ffc-d154-4b77-9117-6f580fbeb0fe", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"v.Container(children=[\n", | ||
" v.Html(\n", | ||
" tag='h1',\n", | ||
" attributes={'title': 'a title'},\n", | ||
" children=['My heading']\n", | ||
" )\n", | ||
"])" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "11872b33-a907-4acb-9537-0a2f4237d791", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| hide\n", | ||
"import nbdev; nbdev.nbdev_export()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "7a9f3ff0-90e3-4cbb-a37e-ee9a28e6bf46", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "python3", | ||
"language": "python", | ||
"name": "python3" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |