Mudanças entre as edições de "Jupyter"

De BrapciWiki
Ir para navegação Ir para pesquisar
Linha 9: Linha 9:
 
== Pré-requesito ==
 
== Pré-requesito ==
 
  apt install npm
 
  apt install npm
 +
apt install python3-pip
  
 
== Instalando Jupyter ==
 
== Instalando Jupyter ==

Edição das 19h45min de 29 de julho de 2021

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.

Checar Versão

jupyter --version

Instalação Jupyter Hub

GutHub JupyerHub

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

https://jupyter.org/try


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