Jupyter
Ir para navegação
Ir para pesquisar
O Jupyter Hub da Plataforma de Ciência de Dados aplicada à Saúde (PCDaS), disponível para usiários de projetos parceiros, roda kernels em Python e R conectados ao dados já indexados em Elaticserach.
Índice
Jupyter HUB
curl https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py | sudo -E python3 - --admin \<admin-user-name>
Checar Versão
jupyter --version
Instalação Jupyter Hub
Pré-requesito
apt install npm apt install python3-pip
Instalando Jupyter
Using pip JupyterHub can be installed with pip, and the proxy with npm:
npm install -g configurable-http-proxy python3 -m pip install jupyterhub
If you plan to run notebook servers locally, you will need to install the Jupyter notebook package:
python3 -m pip install --upgrade notebook
Iniciando o JupyterHub
jupyterhub
Arquivo de configuração
c.JupyterHub.data_files_path = '/usr/local/share/jupyterhub'
Start the Hub To start the Hub on a specific url and port 10.0.1.2:443 with https:
jupyterhub --ip 10.0.1.2 --port 443 --ssl-key my_ssl.key --ssl-cert my_ssl.cert
Kernal
Identificar os Kernels instalados
jupyter kernelspec list
R with JupyterHub
GitHub R
Acesse o R
R
Instale os pacote
install.packages('IRkernel')
IRkernel::installspec() # to register the kernel in the current R installation
Composer
apt-get install composer
Jupyter com o R
R
install.packages('IRkernel')
IRkernel::installspec(user = FALSE)
Source: [[1]]
Jupyter with PHP
Necessário instalar o Composer e o php-zmg
apt-get install php-zmq
wget https://litipk.github.io/Jupyter-PHP-Installer/dist/jupyter-php-installer.phar php ./jupyter-php-installer.phar install.
[Jupyter-PHP's Installer]
Outros pacotes
GitHub jupyter/nbgraber