Sign inSign up

wfp2002/jupyter

By wfp2002

•Updated about 6 years ago

Jupyter Notebook

Image
0

954

wfp2002/jupyter repository overview

Instalar o jupyter iniciando apenas o bash

docker run -it --name jupyter -p 8888:8888 jupyter/scipy-notebook:latest bash

Da proxima vez que quiser entrar, e cair no bash

docker start jupyter

docker attach jupyter

Executar o jupyter no bash

jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root

Executar com nohup gerando arquivo de log nohup.out para ver o token

nohup jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root & [2 Enter para voltar para linha de comando]

Sem gerar o log

nohup jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root > /dev/null 2>&1 &


Rodando jupyter direto sem entrar em Bash, o jupyter ja inicia automaticamente sem precisar dar start em modo daemon

docker run -itd --name jupyter -p 8888:8888 jupyter/scipy-notebook:latest

Para pegar o token

docker exec jupyter jupyternotebook list


Copiando arquivos para dentro do container:

docker cp [nome do arquivo] [nome do container]:[caminho destino]

docker cp index.html jupyter:/home/jovyan

Para saber qual diretorio esta o jupyter

docker exec jupyter pwd


Rodando o jupyter com acesso a Root para usar o sudo su ou mesmo um sudo apt-get install no terminal, tanto via docker como no terminal via Jupyter.

docker run -itd --name jupyter -p 8888:8888 --user root -e GRANT_SUDO=yes jupyter/scipy-notebook:latest

Tag summary

Content type

Image

Digest

Size

845.2 MB

Last updated

about 6 years ago

docker pull wfp2002/jupyter