Skip to content
This repository

A framework for building exercises to work with Khan Academy.

Octocat-spinner-32 build Add a <span> around a text node for some reason March 19, 2014
Octocat-spinner-32 css Move css to external file and swap pink for orange April 10, 2014
Octocat-spinner-32 exercises Keep the points in front! April 23, 2014
Octocat-spinner-32 images Update badge images and fix clipping October 23, 2013
Octocat-spinner-32 local-only substate kas / subkas April 24, 2014
Octocat-spinner-32 test Change tests to conform March 26, 2014
Octocat-spinner-32 third_party Use requirejs for module loading March 05, 2014
Octocat-spinner-32 tools Add tools/, which will be automatically run by khan-linter. September 12, 2013
Octocat-spinner-32 utils Allow shading the area under a graphie-plotted function April 23, 2014
Octocat-spinner-32 .arcconfig Set arcanist project in .arcconfig to tag reviews January 21, 2013
Octocat-spinner-32 .gitignore Add build/lxml to .gitignore April 02, 2014
Octocat-spinner-32 .gitmodules Move qunit to a more-global directory July 13, 2011
Octocat-spinner-32 .travis.yml Switch travis notifications to Exercises March 25, 2014
Octocat-spinner-32 Makefile Revamp pack.rb input handling again. I'm starting to learn ruby!, a l… October 09, 2013
Octocat-spinner-32 Update readme January 29, 2014
Octocat-spinner-32 exercises-stub.js (khan-exercises) Replace top-level var declaration with explicit glob… October 31, 2013
Octocat-spinner-32 history.js Fix coach report answer correctness color March 25, 2014
Octocat-spinner-32 interface.js Switch taskId back to task_id April 22, 2014
Octocat-spinner-32 khan-exercise.js move header text addition to problem-template.handlebar April 23, 2014
Octocat-spinner-32 lint_blacklist.txt Use requirejs for module loading March 05, 2014
Octocat-spinner-32 main.js Use requirejs for module loading March 05, 2014
Octocat-spinner-32 related-videos.js Remove relatedVideosRendered event March 17, 2014
Octocat-spinner-32 requirejs.config.js Remove semicolon from requirejs.config.js April 22, 2014
Octocat-spinner-32 requirements.txt First pass at creating a new script for our i18n e… January 21, 2013

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.