Compare commits
No commits in common. "84fcee625d62dae5f0034eeb319faa13825c28f1" and "7955b989b4e62f29d0cd8eaec66e72114bce30ff" have entirely different histories.
84fcee625d
...
7955b989b4
@ -1,5 +0,0 @@
|
|||||||
import dash
|
|
||||||
|
|
||||||
app = dash.Dash(__name__, suppress_callback_exceptions=True)
|
|
||||||
# app = dash.Dash(__name__)
|
|
||||||
server = app.server
|
|
@ -14,10 +14,9 @@ import numpy as np
|
|||||||
import dash_bootstrap_components as dbc
|
import dash_bootstrap_components as dbc
|
||||||
|
|
||||||
|
|
||||||
from ... import flat_df_students, pp_q_scores
|
from .. import flat_df_students, pp_q_scores
|
||||||
from ...config import NO_ST_COLUMNS
|
from ..config import NO_ST_COLUMNS
|
||||||
from ...scripts.getconfig import config, CONFIGPATH
|
from ..scripts.getconfig import config, CONFIGPATH
|
||||||
from ..app import app
|
|
||||||
|
|
||||||
COLORS = {
|
COLORS = {
|
||||||
".": "black",
|
".": "black",
|
||||||
@ -27,7 +26,11 @@ COLORS = {
|
|||||||
3: "#68D42F",
|
3: "#68D42F",
|
||||||
}
|
}
|
||||||
|
|
||||||
layout = html.Div(
|
# external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"]
|
||||||
|
# app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
|
||||||
|
app = dash.Dash(__name__)
|
||||||
|
|
||||||
|
app.layout = html.Div(
|
||||||
children=[
|
children=[
|
||||||
html.Header(
|
html.Header(
|
||||||
children=[
|
children=[
|
@ -1,23 +0,0 @@
|
|||||||
import dash_core_components as dcc
|
|
||||||
import dash_html_components as html
|
|
||||||
from dash.dependencies import Input, Output
|
|
||||||
|
|
||||||
from .app import app
|
|
||||||
from .exam_analysis import app as exam_analysis
|
|
||||||
|
|
||||||
|
|
||||||
app.layout = html.Div(
|
|
||||||
[dcc.Location(id="url", refresh=False), html.Div(id="page-content")]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@app.callback(Output("page-content", "children"), Input("url", "pathname"))
|
|
||||||
def display_page(pathname):
|
|
||||||
if pathname == "/":
|
|
||||||
return exam_analysis.layout
|
|
||||||
else:
|
|
||||||
return "404"
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app.run_server(debug=True)
|
|
@ -4,7 +4,7 @@
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from math import ceil, floor
|
from math import ceil, floor
|
||||||
from .config import COLUMNS
|
from .config import COLUMNS, VALIDSCORE
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Functions for manipulate score dataframes
|
Functions for manipulate score dataframes
|
||||||
|
@ -13,7 +13,7 @@ from .getconfig import config, CONFIGPATH
|
|||||||
from .prompts import prompt_exam, prompt_exercise, prompt_validate
|
from .prompts import prompt_exam, prompt_exercise, prompt_validate
|
||||||
from ..config import NO_ST_COLUMNS
|
from ..config import NO_ST_COLUMNS
|
||||||
from .exam import Exam
|
from .exam import Exam
|
||||||
from ..dashboard.index import app as dash
|
from ..dashboard.exam import app as exam_app
|
||||||
|
|
||||||
|
|
||||||
@click.group()
|
@click.group()
|
||||||
@ -89,7 +89,7 @@ def new_exam():
|
|||||||
@cli.command()
|
@cli.command()
|
||||||
@click.option("--debug", default=0, help="Debug mode for dash")
|
@click.option("--debug", default=0, help="Debug mode for dash")
|
||||||
def exam_analysis(debug):
|
def exam_analysis(debug):
|
||||||
dash.run_server(debug=bool(debug))
|
exam_app.run_server(debug=bool(debug))
|
||||||
|
|
||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
|
Loading…
Reference in New Issue
Block a user