In your console, go to the root of this repository and install dependencies with:
make install
Open your browser and visit http://mybinder.org:/repo/openfisca/tutorial
In your console, go to the notebooks
directory and run:
make run
See the new page opened in your default browser and have fun. 😃
Then, to stop Jupyter Notebook server, use Control-C.
In your console, go to the notebooks
directory and run:
make test
If all goes according to plan, you should see a nice OK. No error detected in tested notebook(s).
Otherwise, you'll receive really handy feedback telling you where it doesn't work, and why:
---------------------------------------------------------------------------
<ipython-input-2-6c6f6a2075ab> in <module>()
----> 1 simulation.calculate('af', '2015')
/Users/hyperion/.pyenv/versions/tutoriel/lib/python2.7/site-packages/openfisca_core/simulations.pyc in calculate(self, variable_name, period, **parameters)
153 self.tracer.record_calculation_start(variable.name, period, **parameters)
154
--> 155 self._check_period_consistency(period, variable)
156
157 extra_params = parameters.get('extra_params', ())
/Users/hyperion/.pyenv/versions/tutoriel/lib/python2.7/site-packages/openfisca_core/simulations.pyc in _check_period_consistency(self, period, variable)
288 variable.name,
289 period
--> 290 ).encode('utf-8'))
291
292 if variable.definition_period == periods.YEAR and period.unit != periods.YEAR:
ValueError: Unable to compute variable 'af' for period 2015: 'af' must be computed for a whole month. You can use the ADD option to sum 'af' over the requested period, or change the requested period to 'period.first_month'.