Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
example-requirements
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrian Brömmelsiek
example-requirements
Commits
6e81ddef
Commit
6e81ddef
authored
Jun 16, 2020
by
Min RK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discuss pip-compile in README
parent
b3e7cd5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
README.md
README.md
+14
-2
No files found.
README.md
View file @
6e81ddef
...
...
@@ -4,7 +4,7 @@
A Binder-compatible repo with a
`requirements.txt`
file.
Access this Binder at the following URL
Access this Binder at the following URL
http://mybinder.org/v2/gh/binder-examples/requirements/master
...
...
@@ -18,7 +18,19 @@ pip install -r requirements.txt
The base Binder image contains no extra dependencies, so be as
explicit as possible in defining the packages that you need. This includes
specifying explict versions wherever possible.
specifying explicit versions wherever possible.
If you do specify strict versions, it is important to do so for
*all*
your dependencies, not just direct dependencies.
Strictly specifying only some dependencies is a recipe for environments
breaking over time.
[
pip-compile
](
https://github.com/jazzband/pip-tools/
)
is a handy
tool for combining loosely specified dependencies with a fully frozen environment.
You write a requirements.in with just the dependencies you need
and pip-compile with generate a requirements.txt with all the strict packages and versions that would come from installing that package right now.
That way, you only need to specify what you actually know you need,
but you also get a snapshot of your environment.
In this example we include the library
`seaborn`
which will be installed in
the environment, and our notebook uses it to plot a figure.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment