Learn Python - Free Tutorials & AI Guides

Free Python Tutorials, AI Guides & Coding Projects

Data Visualization
How Vega-Lite Compiles a JSON Chart Spec into Vega: A Source Code Tour

How Vega-Lite Compiles a JSON Chart Spec into Vega: A Source Code Tour

Every developer who has written a Vega-Lite spec knows the bargain: you declare twelve lines of JSON — a mark, an x field, a y field, maybe a color — and the library hands back a hundred-line Vega specification with...

Data Visualization
How Seaborn Works Internally: Plotter, Stat Estimators, and Matplotlib Compilation

How Seaborn Works Internally: Plotter, Stat Estimators, and Matplotlib Compil...

Every seaborn user has been here: you call so.Plot(df, "x", "y").add(so.Bars()).plot() and a fully-formed matplotlib figure pops out — aggregated means, bootstrap confidence intervals, dodged positions, shared axes. Then a reviewer asks “which interval is that, exactly?” or the notebook...

Data Visualization
How Recharts Builds React Charts from D3 Primitives: Inside CartesianChart, Redux State and the Scale Engine

How Recharts Builds React Charts from D3 Primitives: Inside CartesianChart, R...

Every React developer has copied the <LineChart><Line dataKey="pv" /></LineChart> snippet from the Recharts docs and shipped a dashboard in an afternoon. The pain starts the first time something misbehaves: the tooltip flickers on every mousemove, stacked bars silently reorder after...

Data Visualization
How plotnine Works Internally: ggplot Build Stages, Stats, Geoms, and the Matplotlib Backend

How plotnine Works Internally: ggplot Build Stages, Stats, Geoms, and the Mat...

Every plotnine user knows the moment: you stack ggplot(df, aes(x="displ", y="hwy")) + geom_point() + facet_wrap("~class"), hit render, and a clean multi-panel figure appears. Then something is off — a legend vanished, a y-axis range disagrees between panels, a smooth is...

Data Visualization
How plotly.py Turns Python Figures into Plotly.js JSON: graph_objs, Codegen, and Renderers Explained

How plotly.py Turns Python Figures into Plotly.js JSON: graph_objs, Codegen, ...

Every plotly user knows the moment: three lines of Python, then fig.show(), and a browser tab opens with a fully interactive chart. What almost nobody stops to ask is where the rendering actually happened. The answer is not in Python...

Data Visualization
How ggplot2 Works: Layers, Stats, Geoms and Scales in the R Source

How ggplot2 Works: Layers, Stats, Geoms and Scales in the R Source

Every R user eventually hits the same wall: the plot that starts as ggplot(mpg, aes(displ, hwy)) + geom_point() grows into a ten-line chain of additions, and then something breaks. The error points at a function you never called, inside a...

Data Visualization
How Apache ECharts Renders: setOption, the Scheduler, Coordinate Systems and ZRender

How Apache ECharts Renders: setOption, the Scheduler, Coordinate Systems and ...

Every frontend team has a chart that fights back. You feed Apache ECharts a 40,000-point scatter series and the tab drops to fifteen frames per second; you call setOption in a resize handler and the axes flicker; you swap the...

Data Visualization
How D3.js Is Assembled: 30 Modules, One Rollup Build, and the Anatomy of d3.min.js

How D3.js Is Assembled: 30 Modules, One Rollup Build, and the Anatomy of d3.m...

Every JavaScript developer has typed something like d3.scaleLinear().domain([0, 100]).range([0, 600]) and watched an axis snap into place. What almost nobody stops to ask is where that function actually lives. The answer is surprising: not in the d3 package you installed....

Data Visualization
How Bokeh Renders Interactive Charts: the Python Model Tree, BokehJS Client, and WebSocket Server Push

How Bokeh Renders Interactive Charts: the Python Model Tree, BokehJS Client, ...

Every Python developer has felt the gap. Matplotlib hands you a static PNG, Plotly hands you a JSON blob and hopes you like their cloud, and Plotnine gives you a grammar but still freezes the moment you want a hover...

Data Visualization
How Altair Compiles a Python Chart into Vega-Lite JSON: the Chart API, Channel Encoding, and the vl-convert Rendering Path

How Altair Compiles a Python Chart into Vega-Lite JSON: the Chart API, Channe...

Every Python developer who builds charts has hit the same wall. You write ten lines of plotting code, it looks fine, and then a stakeholder asks for a tooltip, a brush, and a grouped variant — and the library turns...

Developer Tools
How winget Works: A C++ Source Tour of Microsoft's Windows Package Manager

How winget Works: A C++ Source Tour of Microsoft's Windows Package Manager

Installing software on Windows has been a small act of faith for decades: search the web, download an exe from wherever the results point, hope it is clean, click Next until the wizard releases you. Automating that ritual was worse....

Developer Tools
How uv Works: The Rust Architecture Behind Python's Fastest Package Manager

How uv Works: The Rust Architecture Behind Python's Fastest Package Manager

Every Python developer knows the ritual: create a virtualenv, upgrade pip, run pip install -r requirements.txt, then stare at the resolver as it backtracks through incompatible version combinations of your transitive dependencies. On projects with deep graphs — a data...

Developer Tools
How Scoop Works: Manifests, Shims, and Buckets Inside the PowerShell Source

How Scoop Works: Manifests, Shims, and Buckets Inside the PowerShell Source

On a fresh Windows machine, installing three CLI tools usually means three graphical wizards, three Start Menu entries, one or two “do you want to allow this app to make changes” prompts, and a PATH variable you edit by hand...

Developer Tools
pnpm Architecture: How the Content-Addressable Store, Symlinked node_modules, and the Resolver Actually Work

pnpm Architecture: How the Content-Addressable Store, Symlinked node_modules,...

Every JavaScript developer knows the ritual: clone a project, run an install, and watch hundreds of megabytes land in node_modules — most of it duplicated bytes that already existed in the project next door. npm and Yarn traditionally solved dependency...

Developer Tools
How pixi Solves Conda and PyPI Environments: A Rust Source Tour

How pixi Solves Conda and PyPI Environments: A Rust Source Tour

Every data scientist knows the ritual: the notebook works, the handoff does not. Conda environments were supposed to fix “works on my machine,” yet conda env export gives you a YAML file that quietly omits build strings, drifts from what...

Developer Tools
How Pacman Works: Inside libalpm's Dependency Resolution and Local Database in C

How Pacman Works: Inside libalpm's Dependency Resolution and Local Database in C

Run pacman -Syu on Arch Linux and a 25,000-line C program will decide, in a fraction of a second, the exact order in which hundreds of packages get replaced on your root filesystem — and it will refuse to run...

Developer Tools
Nix Internals: How the /nix/store, Derivations, and the Daemon Actually Work

Nix Internals: How the /nix/store, Derivations, and the Daemon Actually Work

Every developer has lost an afternoon to “works on my machine”. You upgrade OpenSSL, half your toolchain silently links against the old one, and the bug reproduces on exactly one laptop. Traditional package managers install files into shared directories like...

Developer Tools
How mamba Makes conda Installs Fast: Inside the libsolv Resolver and C++ Core

How mamba Makes conda Installs Fast: Inside the libsolv Resolver and C++ Core

Every data scientist knows the pain: you type conda install pytorch, the solver grinds for five minutes, and you stare at “Solving environment: - \ … failed” while a build server idles. The old conda front end resolved dependencies in...

Developer Tools
How Cargo Works: Dependency Resolution, Registry Cache, and Cargo.lock Internals

How Cargo Works: Dependency Resolution, Registry Cache, and Cargo.lock Internals

Every developer eventually meets the same nightmare in a different language: two packages want incompatible versions of the same dependency, the installer prints a wall of conflict errors, and you spend your afternoon hand-pinning versions until the build passes again....

Developer Tools
How Homebrew Works: The Ruby Architecture Behind brew's Formula System

How Homebrew Works: The Ruby Architecture Behind brew's Formula System

Type brew install ffmpeg on a fresh Mac and Homebrew will resolve, fetch and link a dependency tree that can span dozens of packages — in the right order, without asking you anything, without a lockfile. The order it picks,...

Productivity
How SiYuan Works: Inside the Block-Based Note-Taking Kernel Architecture

How SiYuan Works: Inside the Block-Based Note-Taking Kernel Architecture

Most note apps treat a document as an opaque blob. A paragraph is just a fragment of one big markdown file, so “link to exactly this paragraph” degenerates into text search, “what references this heading” requires re-parsing your whole vault,...

Productivity
How Outline Works: Inside the Team Wiki Architecture

How Outline Works: Inside the Team Wiki Architecture

Ask three people where the API spec lives and you will get three different answers: a Slack thread nobody can find anymore, a Google Doc whose owner left the company, and a Notion page that needs a login half the...

Productivity
How NocoDB Works: Inside the Airtable Alternative Architecture

How NocoDB Works: Inside the Airtable Alternative Architecture

Your production data already lives in a Postgres or MySQL instance, carefully backed up, replicated, and monitored. Then a teammate wants “something like Airtable” for it, and the conventional answer is to export tables into a SaaS spreadsheet, run nightly...

Productivity
How Logseq Works: Inside the Outliner and Datascript Architecture

How Logseq Works: Inside the Outliner and Datascript Architecture

Roam Research popularized networked note-taking — daily journals, bidirectional links, blocks you can refactor anywhere — but your knowledge base lives on someone else’s cloud, behind a subscription, in a format you cannot grep. Logseq answers that pain with a...

Watch PyShine on YouTube