Skip to content

Commit

Permalink
Issue #6 & #7: better csv output (#14)
Browse files Browse the repository at this point in the history
* Updated .gitignore w/notes file

* Issue #5: code-cleanup

Cleaned up the code to conform with PEP8 standard, added docstrings to functions and modules, added comments, removed unused functions, modified names to more meaningful names, modified some html.ids.

* Added CSS

Added CSS styling elements, made the text respond to viewscreen size, added scroll bar to rubric dataframe

* Rubric only filter

Added filter so that only assignments with an attached rubric show up in dropdown menu.

* Issue #7: additional data in table

Added course id, course name, and assignment name to the csv output. Elected to keep it in the dataframe shown to the user.

* Issue #6: add better csv title

Added course name, assignment name, and current date to csv title.

* Got rid of unused import

Got rid of get_course_assignment_info, an import from helpers which is not used and not defined in helpers.
  • Loading branch information
IvyaThalenmourn authored Jul 22, 2022
1 parent 4c67ed0 commit c06b480
Show file tree
Hide file tree
Showing 7 changed files with 408 additions and 288 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ __pycache__
.env
.DS_Store
test.ipynb
requirements.md
requirements.md
Notes.txt
41 changes: 41 additions & 0 deletions assets/html_elements.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
h1, h2, h3, p, div, input {
margin:0vw; /* This limits the amount of whitespace between text to the minimum*/
}
h1 {
font-size:8vw;
}
h2 {
font-size:4vw;
margin-top:1vw;
}
h3 {
font-size:3vw;
font-weight:normal;
margin-bottom:1vw;
}

p {
font-size:2vw; /* Individual <p> elements have font colours in the main file. */
}
#rubric-only-filter {
margin-bottom:1vw; /* Adds extra space around "This menu..." message. */
}
button {
font-size:2vw;
display: inline-block;
margin-top:1vw;
margin-bottom:1vw;
}
#submit-course-id {
margin-left:1vw; /* Adds extra space between the button and course ID input box. */
}
div {
font-size:2vw;
border:1vw;
}
#rubric-datatable {
overflow-x:auto;
}
input {
font-size:2vw;
}
38 changes: 35 additions & 3 deletions dash-app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,44 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "855679dd",
"metadata": {
"scrolled": false
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"https://canvas.ubc.ca/api/graphql\n",
"\u001b[32m\n",
"Token Valid: Alyona Glazyrina (70492)\n",
"\u001b[0m\n"
]
},
{
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"100%\"\n",
" height=\"650\"\n",
" src=\"http://127.0.0.1:8050/\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" \n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x2acd8b97760>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from rubric_assessment_app import app\n",
"app()"
Expand All @@ -54,7 +86,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.5"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit c06b480

Please sign in to comment.