Skip to content
This repository

A framework for building exercises to work with Khan Academy.

log subhint usage

Summary: Added code to log when subhints are clicked on and expanded.  This will be used in the header text intervention experiment to see when users interact with dropdown text.  This will not work without the corresponding webapp checkin, at .

Test Plan: Ran it on local appserver.

Reviewers: jace, alpert, eliana

Reviewed By: alpert, eliana

Subscribers: alpert, mattfisher, mattfaus

Differential Revision:
latest commit 2bde950f94
Jascha Sohl-Dickstein Sohl-Dickstein authored
Octocat-spinner-32 build Add a <span> around a text node for some reason
Octocat-spinner-32 css Move css to external file and swap pink for orange
Octocat-spinner-32 exercises Use PRETTY instead of POTATO
Octocat-spinner-32 images Update badge images and fix clipping
Octocat-spinner-32 local-only substate KAS
Octocat-spinner-32 test Change tests to conform
Octocat-spinner-32 third_party Use requirejs for module loading
Octocat-spinner-32 tools Add tools/, which will be automatically run by khan-linter.
Octocat-spinner-32 utils log subhint usage
Octocat-spinner-32 .arcconfig Set arcanist project in .arcconfig to tag reviews
Octocat-spinner-32 .gitignore Add build/lxml to .gitignore
Octocat-spinner-32 .gitmodules Move qunit to a more-global directory
Octocat-spinner-32 .travis.yml Switch travis notifications to Exercises
Octocat-spinner-32 Makefile Revamp pack.rb input handling again. I'm starting to learn ruby!, a l…
Octocat-spinner-32 Update readme
Octocat-spinner-32 exercises-stub.js (khan-exercises) Replace top-level var declaration with explicit glob…
Octocat-spinner-32 history.js Fix coach report answer correctness color
Octocat-spinner-32 interface.js log subhint usage
Octocat-spinner-32 khan-exercise.js log subhint usage
Octocat-spinner-32 lint_blacklist.txt Use requirejs for module loading
Octocat-spinner-32 main.js Use requirejs for module loading
Octocat-spinner-32 related-videos.js Remove relatedVideosRendered event
Octocat-spinner-32 requirejs.config.js Remove geometry proofs exercises
Octocat-spinner-32 requirements.txt First pass at creating a new script for our i18n e…

Khan Academy Exercises

Copyright (c) 2013 Khan Academy

The exercise framework is MIT licensed.

The exercises are under a Creative Commons by-nc-sa license.

Exercise Framework

Khan Academy has created a generic framework for building exercises. This framework, together with the exercises themselves, can be used completely independently of the Khan Academy application.

The framework exists in two components:

  • An HTML markup for specifying exercises.
  • A jQuery plugin for generating a usable, interactive, exercise from the HTML markup.

Using the Framework Locally

You need to serve the files from some sort of a server. You can't just open the files directly in a browser. For example:

cd khan-exercises
python -m SimpleHTTPServer # or python3 -m http.server

Now if you open your browser to http://localhost:8000 (or you should see the contents of the khan-exercises directory. Navigate to the exercises subfolder, and an HTML file under there to see an exercise.

Exercise Development

This framework supports over 450 of our current math exercises including updated versions of many exercises Sal built for his cousins before he made his first video! New exercises on Khan Academy, however, are now written by many content experts using Perseus and stored in our datastore as individual questions.


If you're passionate about providing a free world-class education for anyone, anywhere and want to apply to be a full-time or intern software developer at Khan Academy, please do so.

Something went wrong with that request. Please try again.