If you want to use OpenFisca for running a simulation or evaluating the impact of a reform, without installing anything in your computer, these online services allow you to run OpenFisca directly on your browser, no installation required: repl.it, python anywhere and jupyterlab.
Let’s see how to use OpenFisca on one of those services: repl.it 🤓
Go to repl.it and select Python
:
Write the OpenFisca code you wish to run. The default entry point is main.py
python file. Example of main.py
content using openfisca-country-template
:
from openfisca_country_template import CountryTaxBenefitSystem
tax_benefit_system = CountryTaxBenefitSystem()
parameters = tax_benefit_system.parameters
print parameters
You can also import files (e.g. JSON files describing input situations) by clicking on the
import or drop
button.
Click the run
button to execute your code .
Your code dependencies are automatically analyzed and imported.
You’re all set. Check your code results on the right sided python interpreter.
To see OpenFisca in action in your favourite browser, check out this example of reform to the French tax-benefit system in repl.it (in French)!