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

Add comments about code re-use #7

Open
molpopgen opened this issue Sep 9, 2020 · 0 comments
Open

Add comments about code re-use #7

molpopgen opened this issue Sep 9, 2020 · 0 comments

Comments

@molpopgen
Copy link
Owner

One frustration is that questions using Python must be self-contained. Thus, to re-use a chunk of code, one would have to either:

  1. Create a Python package that can be pip-installed.
  2. Mess with PYTHONPATH so that the questions can see modules containing reusable code.

The first would clearly work. I've not tested the second.

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