Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
HOWTOs/jupyter-setup.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
63 lines (46 sloc)
1.25 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Installation | |
``` | |
python3 -m venv mypython | |
source mypython/bin/activate | |
pip install --upgrade pip | |
pip install Jupiterlab | |
``` | |
### Installation of Kernels | |
For the R kernel: | |
```{r} | |
R> install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest')) | |
R> devtools::install_github('IRkernel/IRkernel') | |
``` | |
For the Julia kernel: | |
``` | |
julia> Pkg.add("IJulia") | |
``` | |
### Configuring | |
``` | |
jupyter notebook --generate-config | |
``` | |
generate passwd using python3 | |
``` | |
cd ~/.jupyter | |
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout mykey.key -out mycert.pem | |
``` | |
see uncommented lines in my `.jupyter/jupyter_notebook_config.py` | |
`grep -v "^#" jupyter_notebook_config.py |grep "c"` | |
``` | |
c.NotebookApp.certfile = u'/home/arndt/.jupyter/mycert.pem' | |
c.NotebookApp.ip = '*' | |
c.NotebookApp.keyfile = u'/home/arndt/.jupyter/mykey.key' | |
c.NotebookApp.open_browser = False | |
c.NotebookApp.password = u'sha1:aaaaaaaaaaaaaaabbbbbababababababababa' | |
c.NotebookApp.port = 11001 | |
``` | |
For a newer node version - needed during upgrade | |
``` | |
export PATH=/usr/share/atom/resources/app/apm/bin:$PATH | |
export PATH=/home/arndt/tmp/node-v8.11.3-linux-x64/bin:$PATH | |
``` | |
# Extensions | |
to see plotly plot: | |
``` | |
jupyter labextension install @jupyterlab/plotly-extension | |
``` |