News for hackers. Stuff that matters.
Re:JupyterHub 1.0 by victornomad on Saturday May 04, 2019 @11:39AM (#19827115)
Any recommendation on how to setup an environment with Jupyter and nvidia/cuda? Is it worth to use a docker container? or installed system wide?
Re:JupyterHub 1.0 by prakhar987 on Saturday May 04, 2019 @12:27PM (#19827425)
I once tried running jupyter inside docker...the downside i saw was conda install of jupyter is around 1.2 gb, making the container pretty heavy...if you are fine with this then all thats left is to expose the port to the container on which you want your jupyter server to run and changing some config after generating jupyter_config file for remote access.
Re:JupyterHub 1.0 by Q6T46nT668w6i3m on Saturday May 04, 2019 @07:35PM (#19830081)
Hi, I’ve been working on setting up JupyterHub on a DGX-1 for the past week. It’s straightforward, you run JupyterHub on your machine and you have it launch servers for each user with nvidia-docker.
Re:JupyterHub 1.0 by patall on Saturday May 04, 2019 @11:46AM (#19827159)
At work we use conda which works great, though nvidia libraries are usually installed by admins system wide. But for anything python related, conda is perfect.
Re:JupyterHub 1.0 by victornomad on Saturday May 04, 2019 @11:50AM (#19827182)
Thanks for the answer :) what is the advantages of using conda vs installing the packages by hand? Tried to document my self a bit before but I still dont know the real advantages in a modern Linux system
Re:JupyterHub 1.0 by mch82 on Saturday May 04, 2019 @12:36PM (#19827496)
There are at least three:

1. Anaconda sells support that many companies will value, https://www.anaconda.com/support/

2. Anaconda checks the installed versions of packages in the distribution are compatible.

3. Conda has an “environments” feature so a developer/scientist can switch between many, project-specific development environments, https://docs.anaconda.com/ae-notebooks/user-guide/adv-tasks/...

Edit: Also, there is a distribution for Windows that’s handy when your employer has you using Windows. And, depending on your software approval process, it can be convenient to get one package approved (Anaconda) instead of every package Anaconda includes.

Re:JupyterHub 1.0 by joshvm on Saturday May 04, 2019 @11:27PM (#19830942)
Conda gives you two real advantages: the first is straightforward virtual environments (you could also use venv) and secondly better dependency management than pip in some cases.

There are certain packages which aren't available on pip that conda-forge provides e.g. for a while OpenCV wasn't available through pypi.

Remember you can use pip within conda, and you can install directly (e.g. setup.py) within a conda env.

Docker is mostly useful if you want to mix and match different versions of CUDA/cudnn etc. If you just want to run an isolated Python environment, then Conda will do the job.

Re:JupyterHub 1.0 by ianbooker on Saturday May 04, 2019 @12:09PM (#19827311)
Conda is "just" a distribution and package management tool. As a beginner it is a good idea to just go with it, but installing all packages using pip is just as good, in the end. For reference: https://www.xkcd.com/1987/
Re:JupyterHub 1.0 by jhbadger on Saturday May 04, 2019 @03:10PM (#19828552)
In bioinformatics there is a trend for systems like qiime2 to be basically impossible to install via pip and to have conda and docker be the only options. In part this is because rarely do bioinformatics pipelines rely only on python but on a multitude of existing programs that need to be installed.