Skip to content

pamelafox/faded-parsons-static

 
 

Repository files navigation

Python Faded Parsons Problems

This website allows you to run Faded Parsons Problems in the browser. It uses Pyodide for executing Python doctests and localStorage for storing user progress.

Check it out here:

https://pamelafox.github.io/faded-parsons-static/index.html

Running the website

To run locally:

npm install
npm run dev

Deploying the website

This website can be deployed anywhere since it's entirely static, and is currently deployed on Github Pages. You can enable Pages on your own fork of the repo to host on Github.

Adding a new problem

Add two files to the parson_probs folder:

  • problem_name.py: This should be a Python function that only has the function header, docstring, and doctests. It shouldn't contain the solution.
  • problem_name.yaml: This is a YAML file that includes the problem description (HTML) and code lines with blanks.

Then you can access the new problem at problem.html?name=problem_name

About

A way to run Python Faded Parsons problems entirely in the browser.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 64.7%
  • Python 18.8%
  • HTML 9.5%
  • CSS 6.9%
  • Shell 0.1%