Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Change jupyter notebook README example to jupyter lab? #147

Closed
josephrocca opened this issue Sep 4, 2021 · 1 comment
Closed

Change jupyter notebook README example to jupyter lab? #147

josephrocca opened this issue Sep 4, 2021 · 1 comment

Comments

@josephrocca
Copy link

In the jupyter/docker-stacks repo it is mentioned (here) that Jupyter Notebook is deprecated. Wondering would it make sense to move change the README's jupyter notebook example to jupyter lab?

The ufoym/deepo:all-py36-cu111 image already has jupyterlab, but it looks like a lot of the others would need to have it added?

The existing command in the README seems to work fine if you just swap out jupyter notebook with jupyter lab. I've hackily added some stuff to add a user that matches the host username so that the files that jupyter lab creates are owned by my user instead of root:

docker run --rm --gpus all -it -p 8888:8888 -v /home/joe/jupyter:/home/$(whoami) --ipc=host ufoym/deepo:all-py36-cu111 sh -c "useradd -m -s /bin/bash $(whoami) && usermod -a -G sudo $(whoami) && su - $(whoami) -c \"jupyter lab --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token= --notebook-dir='/home/$(whoami)'\""

There's probably a much better way of doing that, but that's what I've hacked together just now with my limited docker/linux skills 😅 I did try something like:

docker run -u $(id -u):$(id -g) --rm --gpus all -it -p 8888:8888 -v /home/joe/jupyter:/root --ipc=host ufoym/deepo:all-py36-cu111 jupyter lab --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token= --notebook-dir='/root'

But I got [Errno 13] Permission denied: '/.local' and didn't investigate too much further.

@ufoym ufoym closed this as completed in 4004501 Dec 27, 2021
@ufoym
Copy link
Owner

ufoym commented Dec 27, 2021

Wondering would it make sense to move change the README's jupyter notebook example to jupyter lab?

Great idea!

I've hackily added some stuff to add a user that matches the host username so that the files that jupyter lab creates are owned by my user instead of root:

Good idea as well for your scenario. However, we are not sure if it is suitable for general usage.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants