Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

follow approach of scitools/iris course for examples #141

Open
nhsavage opened this issue Jul 28, 2022 · 0 comments
Open

follow approach of scitools/iris course for examples #141

nhsavage opened this issue Jul 28, 2022 · 0 comments

Comments

@nhsavage
Copy link
Collaborator

In the scitools courses e.g. https://github.com/SciTools/courses/blob/master/course_content/iris_course/1.The_Iris_Cube.ipynb

the approach is to put each example in it's own file, and then include a way to load it inside the relevant worksheet using:

SAMPLE SOLUTION:
Un-comment and execute the following, to view a possible solution, and some code.
Then run it ...

# SAMPLE SOLUTION
# %load solutions/iris_exercise_1.2a

this has two advantages:

  1. it makes it easier for the user to access the relevant answers
  2. it make it easier to test (no need to cut and paste the solutions in)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants