JupyterLab Barcode Scanner Extension

Extract every 1D and 2D barcode from a dataset or lab image straight inside your JupyterLab 4 tab via WebAssembly, with no kernel and leading zeros preserved.

Install the prebuilt wheel using pip

Needs JupyterLab 4. No Node.js, frontend rebuild or active Python kernel required.

  1. 1

    Run pip install inside the Python environment serving JupyterLab 4, then refresh your JupyterLab tab.

    Shell
    python -m pip install jupyterlab-qrcode-barcode-scanner
  2. 2

    Launch QR Code & Barcode Scanner via Launcher → Other, Command Palette, /lab?qrcode-barcode-scanner or the file browser.

  3. 3

    Right-click any PNG, JPEG, WebP or GIF file (or select a local image) and choose between fast, frame and full.

Use pip rather than Extension Manager search (affected by PyPI's removed XML-RPC browse method in JupyterLab 4). Confirm with jupyter labextension list.

Open on PyPI

Inspect barcode images alongside your notebooks

Review dataset files, scannability scores and JSON reports together inside your browser tab without spinning up a kernel.

File browser & direct URL

Right-click any workspace PNG, JPEG, WebP or GIF and select Scan for QR codes and barcodes, or navigate straight to /lab?qrcode-barcode-scanner.

Instant profile switching & JSON

Switch between fast, frame or full to re-scan on the spot; review exact digits (leading zeros kept intact), symbology and the full JSON report.

What runs here & Python SDK

Verify the bundled WASM SHA-256 inside What runs here; when you need scripted decoding in notebook cells, switch to the Python SDK.

Test a barcode image in JupyterLab

Generate a known reference image, run the in-tab scan and check the decoded value character by character.

barcode-reference.png

Create a Code 128 barcode encoding STOCK-4827 and save it as barcode-reference.png.

Decode the image in JupyterLab

Shell
jupyter labextension list
# Lists @qrcode-ai-com/jupyterlab-qrcode-barcode-scanner
# Right-click barcode-reference.png -> Scan for QR codes and barcodes
# Or open /lab?qrcode-barcode-scanner and pick the local file
Expected result · Code 128
STOCK-4827

JupyterLab reads the image inside your tab using WebAssembly and displays the exact Code 128 identifier, symbology and JSON report.

Sample result for barcode-reference.png.

JupyterLab Barcode Scanner extension questions

pip setup, Extension Manager caveat, in-tab privacy, CSP/main-thread limits and licensing.

Execute python -m pip install jupyterlab-qrcode-barcode-scanner inside the environment serving JupyterLab 4, then refresh the browser tab. Verify the install via jupyter labextension list or inspect the package on PyPI.

JupyterLab 4's Extension Manager relies on PyPI's retired XML-RPC browse API for search and can fail. Running pip directly fetches the exact same ~1 MB prebuilt wheel cleanly without Node.js or a rebuild.

No. The frontend wheel bundles the WebAssembly scanner engine and executes straight inside your browser tab without adding any server or Python kernel code.

No. Local files selected from your computer stay inside the browser tab, while workspace files load through your existing Jupyter server contents API. Zero telemetry or external requests occur, and decoded URLs are never opened automatically.

Files exceeding 10,000 pixels per side or 64 million total pixels return a QRS- error. Because decoding executes on the tab's main thread with no time budget, running full on large images can keep the tab busy briefly. A Content Security Policy blocking WebAssembly stops the engine from initialising.

Yes. It reads 16 1D and 2D barcode symbologies alongside QR codes, returning exact strings with leading zeros intact together with the full JSON report while making zero external product database lookups.

Yes. Both the extension and its bundled WebAssembly engine are open-source under the MIT licence (with retained Apache-2.0 notices for two reader modules), independent of QR Code AI generation credits or paid plans.

JupyterLab setup and Barcode Scanner references

Refer to the official package page and README for installation notes, limits and supported symbologies.