Tiered of opening terminal to launch Jupyterlab, and having to leave it opened all the time? Try to run Jupyterlab as a desktop app:
One of a benefits is avoiding the annoying accident: "closed Jupyterlab when quitting the browser".
Run in Terminal
| """ | |
| This code computes pi. It's not the first python | |
| pi computation tool that I've written. This program | |
| is a good test of the mpi4py library, which is | |
| essentially a python wrapper to the C MPI library. | |
| To execute this code: | |
| mpiexec -np NUMBER_OF_PROCESSES -f NODES_FILE python mpipypi.py |
| =begin | |
| Find pi by the Monte-Carlo method. | |
| area of a circle = pi r^2 | |
| area of a square = (2r)^2 = 4 r^2 | |
| Perform random uniform sampling between -1 and 1. | |
| The proportion of points in the unit circle is: | |
| p = (pi r^2) / (4r^2) |
| # install anaconda | |
| jupyter-lab --generate-config | |
| edit ~/.jupyter/jupyter_notebook_config.py, add lines: | |
| c.NotebookApp.token = '' #you can set password here. | |
| #https://github.com/jiahaog/nativefier | |
| npm install nativefier -g | |
| nativefier "http://localhost:8888" |
Tiered of opening terminal to launch Jupyterlab, and having to leave it opened all the time? Try to run Jupyterlab as a desktop app:
One of a benefits is avoiding the annoying accident: "closed Jupyterlab when quitting the browser".
Run in Terminal
| .vscode-body .markdown-body { | |
| font-family: "PingFang SC" | |
| } | |
| .vscode-body strong {color:#6392BF;} | |
| .vscode-body em {color: #A9312A; font-style: normal !important;} | |
| .vscode-body table {font-size: 95% !important;} | |
| .vscode-body .CodeMirror, .vscode-body pre {font-size: 90%;} | |
| .vscode-body pre { |
| search regex: | |
| ~*(?:^|[^~])(~~(\\w+(\\s\\w+)*)~~) | |
| # replace with (attention: there's a white space at the end) | |
| **$1** |
audible-converter "*.aax" -a <your-activation-bytes>| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| letters-to-100.py | |
| """ | |
| import string | |
| letter_values = dict((l, i) for i, l in enumerate(string.lowercase, start=1)) | |
| english_dict = open('/usr/share/dict/words', 'rU') |