-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Documentation: rewrite Python docs #13320
Conversation
FRidh
commented
Feb 21, 2016
- Update current documentation
- Add introduction/tutorial based on http://python-on-nix.readthedocs.org/en/latest/
- Convert to markdown so I can maintain it
- Include relevant wiki content
add a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) to your script | ||
specifying which dependencies Nix shell needs. With the following shebang, you | ||
can use `nix-shell myscript.py` and it will make available all dependencies and | ||
run the script in the `python3` shell. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a full example could help as reference here:
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p python3Packages.numpy
import numpy
print(numpy.__version__)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple and clear example. Thanks.
Just updated this PR. Unfortunately I get the following errors:
|
Missed this. That error means you have a tag where it shouldn't be, but it won't tell you where. Good luck :) |
I'll look into it, looks amazing on first sight. |
Dependencies such as libraries are automatically installed and should not be | ||
installed explicitly. | ||
|
||
The same goes for Python applications and Python packages that are used as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a tiny bit confusing. Maybe just drop this sentance? Not really sure what information it adds
Looks amazing, just a few nitpicks :) |
@FRidh: 🍻 |
Thanks for the feedback. I'm fine with removing myEnvFun. I'm a bit busy now but hopefully this weekend I can finish it. |
- Rewrite current documentation - Add introduction/tutorial - Convert to markdown
Documentation: rewrite Python docs
Followup: #13700 (so participants get a notification) |