python-novice-gapminder icon indicating copy to clipboard operation
python-novice-gapminder copied to clipboard

display code for error exercise

Open valentina-s opened this issue 8 years ago • 1 comments

In the novice-inflammation lesson we decided to display the code producing the different types of errors, so students easily look into the code and identify the error (without dealing with extra files errors_01.py, errors_02.py): https://github.com/swcarpentry/python-novice-inflammation/issues/51

In the gapminder there is similar exercise in 15-scope lesson. If you are interested in such a change we can submit a PR. The code of the function might help the user understand the key error, but is not relevant to the other questions. Let us know what you think.

valentina-s avatar Oct 22 '17 08:10 valentina-s

Sorry for the delayed response @valentina-s - I think this would be a great idea if you could send us a PR! If I understand correctly the PR would be adding the error generating code inline with the lesson template so there wouldn't be references to /Users/ghopper/foo.py etc?

alee avatar Mar 18 '18 19:03 alee