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

environment sharing #111

Open
Distortedlogic opened this issue Jan 2, 2020 · 0 comments
Open

environment sharing #111

Distortedlogic opened this issue Jan 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Distortedlogic
Copy link

Distortedlogic commented Jan 2, 2020

I meant to post this issue after the sprint to provide example requirement.txt and environment.yml files but slipped my mind, until I received the update on my issue earlier in the unit.

Others and I consistently ran into issues installing with these files out of the box as provided throughout the entire unit 4.

For conda env, use of the --from-history flag will only list user installed conda packages instead of every single package in the env. conda env export --from-history > environment.yml

For .py files, the package pigar will generate a requirements.txt based off of import statements instead of every single package. It also references the files and line the import statement was made in as a comment. pip install pigar then just type and run pigar in terminal.

I have not yet found a good method for dealing with .ipynb as compared to above. Other than converting ipynb to py then use pigar and remove the py files.

There are minor ceavats like psychopg2 typically isnt directly imported due to use of flask-sqlalchemy, thus pigar wont catch it, for example. But it solves the more daunting issue of the dependency conflict nightmare.

These combined should generate more OS agnostic dependency files with less conflicts and errors for students, assuming they even use these files to create the env.

@sokjc sokjc added the enhancement New feature or request label Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants