Python
Conda
- Miniconda installer archive
- Creating an environment from an
environment.yml
file- Download a sample
environment.yml
conda env create -f devel.yml
- Download a sample
- Run JupyterLab under my
devel
environmentconda activate devel && jupyter-notebook --no-browser --port=8888 --log-level=0 --NotebookApp.base_url=jupyter --NotebookApp.allow_remote_access=True > jupyter-server.log 2>&1
- Proxy configuration of nginx for local JupyterLab
location /jupyter { proxy_pass http://localhost:8888/jupyter; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ~* /(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/? { proxy_pass http://localhost:8888; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # WebSocket support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 86400; } client_max_body_size 10M;
Articles
- Generator Tricks for Systems Programmers by David M. Beazley, 2008.
- This tutorial discusses various techniques for using generator functions and generator expressions in the context of systems programming. This topic loosely includes files, file systems, text parsing, network programming, and programming with threads.
- Presentation Slides (PDF)
- David M. Beazley is one of the authors of Python Cookbook
Tutorials
- Real Python Tutorial Categories
- Intermediate Python Tutorials
- Look Ma, No For-Loops: Array Programming With NumPy by Brad Solomon
- Python Pandas: Tricks & Features You May Not Know by Brad Solomon
- Primer on Python Decorators by Geir Arne Hjelle
- The Ultimate Guide to Data Classes in Python 3.7 by Geir Arne Hjelle
- Advanced Python Tutorials
- Python Data Science
- Intermediate Python Tutorials