The following code:
https://github.com/e-ucm/rage-analytics/wiki/Default-visualizations-teacher
For more information, see T-Mon GitHub page: https://github.com/e-ucm/t-mon
xAPI-SG main reference: Applying standards to systematize learning analytics in serious games. Ángel Serrano-Laguna, Iván Martínez-Ortiz, Jason Haag, Damon Regan, Andy Johnson, Baltasar Fernández-Manjón Computer Standards & Interfaces 50 (2017) 116–123, http://dx.doi.org/10.1016/j.csi.2016.09.014
Further info on GitHub wiki page: https://github.com/e-ucm/rage-analytics/wiki/xAPI-SG-Profile
local = False # Set to True if working with a local-hoster Jupyter server, False if working with a web-hosted Jupyter server
storage = 'file'
import json
import numpy as np
from datetime import datetime, timedelta
import copy
import math
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
from collections import Counter
import pandas as pd
from ipywidgets import interact, interactive, fixed, HBox, Layout,VBox
import ipywidgets as widgets
from IPython.display import display, clear_output
import pprint
plt.style.use('default')
*Display all* function is constructing an app to display all vis
players_info = {} # dict with players info
global timeformats
timeformats=['%Y-%m-%dT%H:%M:%SZ','%Y-%m-%dT%H:%M:%S.%fZ'] #array of time format
%run fileBrowserAndUploadButtonToLoadProcessStatements.ipynb
%run vis/helpersFunctions/clearFigMatplotlib.ipynb
%run globalsSelectors.ipynb
header=widgets.HTML("<h1>T-MON</h1> <h2>Select JSON xAPI-SG file to process and see visualisations</h2>")
footer=widgets.HTML("<h4>T-MON, by eUCM research team</h4>")
if storage == 'simva' :
app=VBox([header,simvaWidget.widget(),footer])
display(app)
else:
if local:
app=VBox([header,fileBrowser.widget(),footer])
display(app)
else:
app=VBox([header,uploadButtonApp,footer])
display(app)
with outTabs:
display_checkboxes()
clear_output(wait=True)
displayvis(None)