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

Explaining running pip-compile etc is hard #13

Open
sebbacon opened this issue Feb 7, 2020 · 4 comments
Open

Explaining running pip-compile etc is hard #13

sebbacon opened this issue Feb 7, 2020 · 4 comments

Comments

@sebbacon
Copy link
Contributor

sebbacon commented Feb 7, 2020

Telling people to open a bash console etc is not a pleasant route for getting started. Not least because Windows users won't know how to use bash.

Either document this better, or perhaps provide a pip-compile magic?

@CarolineMorton
Copy link
Contributor

We could add least at screenshots into the README.md -- what do you think?

@sebbacon
Copy link
Contributor Author

Yes it could help. And/or hive off our documentation into a series of separate pages.

We should also pick one recommended way of doing it. I'm leaning towards saying the bang-prefixed-in-cell approach is best (i.e. !pip-compile requirements.txt in a notebook).

There's also the complication of explaining where to do it from. People should be making notebooks in the notebooks/ folder which means they'd have to run !pip-compile ../requirements.txt but sometimes they won't be, and for them to understand what's going on we have to explain what ../ means.

That was why I was thinking about a magic (e.g. %pip-compile) which would find the nearest requirements.txt for you. But then installing magics easily appears to be a bit of a pain, so that might take a while to get round to...

@CarolineMorton
Copy link
Contributor

CarolineMorton commented Feb 11, 2020

Yes agreed it would be good to have a set way of doing it. I am cautious about using !pip-compile from inside notebooks, because we had problems previously with people doing !pip-freeze > requirements from notebooks and then ending up with 2 requirements.txt (one in main dir, one in notebooks). Realise that isn't the issue here exactly but the pathing issue is the same. For that reason I think a little bit of magic would be a nice solution, although it seems fiddly

@sebbacon
Copy link
Contributor Author

Another suggestion:

Another .bat file that windows users can double click

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