News for hackers. Stuff that matters.
Re:Docker for data scientists: Introduction and use cases by abhirag on Thursday January 04, 2018 @01:54PM (#16072971)
Have a look at pipenv - [https://docs.pipenv.org/], it provides deterministic builds and sane package management for python and is the officially recommended Python packaging tool now. If dependency management is your major problem, Docker might be an overkill.

P.S. -- Even if you are on Windows, whole SciPy ecosystem can be easily installed with pipenv, no need of conda for that now.

Re:Docker for data scientists: Introduction and use cases by pwang on Thursday January 04, 2018 @06:07PM (#16074961)
Pipenv is only as good as the wheels that get installed. And the wheels are only as good as the assumption that your runtime/deployment environment matches the buildtime environment of the person who made those wheels.

Oftentimes with ML and compute-intensive workloads, performance is an aspect of correctness. It is nontrivial to get the right accelerated libraries, and the right GPU libraries linking against the right Numpy version for the particular notebook you're running.

If you are doing work just for yourself, or if you have total control over the deployment environment (and your collaborator's environments), then you might be able to get away with just using pip for these things.

Re:Docker for data scientists: Introduction and use cases by abhirag on Thursday January 04, 2018 @07:00PM (#16075274)
Agreed :) when linking with native libraries conda definitely helps a lot. I was merely trying to point to the fact that after the recent release of SciPy we finally have binary wheels for Windows for the whole SciPy ecosystem.
Re:Docker for data scientists: Introduction and use cases by j2kun on Thursday January 04, 2018 @04:36PM (#16074294)
This looks pretty, but I've never personally had trouble with `pip freeze > requirements.txt`

What benefits does pipenv have beyond storing the hashes as well? In what way is it more sane? For example, does it get around the issues with, e.g., matplotlib being installed in a virtualenv?

Re:Docker for data scientists: Introduction and use cases by abhirag on Thursday January 04, 2018 @06:36PM (#16075128)
I assume you are referring to the issues related to installation of external GUI frameworks in virtual environments mentioned here -- [https://matplotlib.org/faq/virtualenv_faq.html], I am afraid pipenv doesn't solve that any better than virtualenv’s --system-site-packages option -- [https://docs.pipenv.org/advanced/#working-with-platform-prov...].

If you are happy with your pip and venv workflow you can happily ignore pipenv, I personally prefer it because:

- It combines all the features of pip and venv with a better UI(in my opinion).

- I can specify my environments in more detail using Pipfile [https://docs.pipenv.org/advanced/#specifying-basically-anyth...]

- It is integrated with pyenv [https://docs.pipenv.org/advanced/#automatic-python-installat...]

- The promise of deterministic builds