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

Run code prior to each exercise run #1

Open
rly opened this issue May 15, 2019 · 0 comments
Open

Run code prior to each exercise run #1

rly opened this issue May 15, 2019 · 0 comments

Comments

@rly
Copy link
Collaborator

rly commented May 15, 2019

Allow pre-defined code to run prior to each exercise run. This would simplify code exercises by hiding things like import statements and other set up steps.

Something like adding precodeblock below:

<precodeblock id="01_02_01" />

<codeblock id="01_02_01">

Review the code in Section 1 if you are stuck!

</codeblock>

with a script like exercises/pre-exc_01_02_01.py

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

1 participant