Installation
see also jupyter config
My Extension list
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
IDE Features
nbdev adds jupyter with the follwoing features:
- a variable explorer, a list of breakpoints and a source preview
- the possibility to navigate the call stack (next line, step in, step out etc.)
- the ability to set breakpoints intuitively, next to the line of interest
- flags to indicate where the current execution has stopped
1 2 3 4 |
|
All in one install
1 |
|
Add install R to jupyter
conda install -c r r-essentials
Add install pandoc and inkscape to conda
1 2 |
|
Install Python Additional Stuff
Graphviz
Install Graphviz from https://graphviz.gitlab.io/download/ put Graphviz/bin in your PATH
pip install graphviz
Install python Libraries
1 2 3 4 5 6 7 8 |
|
oneline
pip install pixiedust SchemDraw nbwavedrom flake8 pyflakes nbconvert graphviz watermark
Problems
Anaconda Navigator not starting
When starting anaconda-navigator produces the follwowing error.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
1 2 3 4 |
|
Install Plotly and Plotly Express
conda install -c plotly plotly_express plotly-orca
Better PDF Export
1 2 3 |
|
Enable HTTPS
See: https://juno.sh/ssl-self-signed-cert/
#!/bin/bash
# Create Directory Structure
mkdir ca ca/certs ca/crl ca/newcerts ca/private
chmod 700 ca/private
touch ca/index.txt
echo 1000 > ca/serial
# Generate CA root key
openssl genrsa -aes256 -out ca/private/ca.key.pem 4096
chmod 400 ca/private/ca.key.pem
# Use the root key (ca.key.pem) to create a root certificate (ca.cert.pem)
openssl req -config openssl.cnf -key ca/private/ca.key.pem -new -x509 -days 7300 -sha256 -extensions v3_ca -out ca/certs/ca.cert.pem
chmod 444 ca/certs/ca.cert.pem
# Generate SSL certificate
mkdir jupyter jupyter/csr jupyter/certs jupyter/private
chmod 700 jupyter/private
openssl genrsa -out jupyter/private/ssl.key.pem 2048
chmod 400 jupyter/private/ssl.key.pem
# Request certificate for your server
openssl req -config openssl.cnf -key jupyter/private/ssl.key.pem -new -sha256 -out jupyter/csr/ssl.csr.pem
# Finally, issue your server SSL certificate
openssl ca -config openssl.cnf -extensions server_cert -days 2048 -notext -md sha256 -in jupyter/csr/ssl.csr.pem -out jupyter/certs/ssl.cert.pem
chmod 444 jupyter/certs/ssl.cert.pem
Install the CA certificate on your device, located at ca/certs/ca.cert.pem
As of iOS 10.3 you must manually turn on trust for SSL when you install a certificate. In order to turn on SSL trust for CA certificate, go to Settings > General > About > Certificate Trust Settings
. Under Enable full trust for root certificates
, turn on trust for the certificate.
Once CA certificate is trusted on the device, all certificates signed with it will be trusted too, including the one we generated for SSL, located at jupyter/certs/ssl.cert.pem. You can now use it when launching Jupyter Notebook by providing absolute paths to both key and certificate. If you generate all your certificate and keys in ~/.ssh/
folder, your paths will be:
jupyter notebook --certfile ~/.ssh/jupyter/certs/ssl.cert.pem --keyfile ~/.ssh/jupyter/private/ssl.key.pem
Alternatively, you can specify paths to key and certificate in Jupyter configuration file.