Latest / Developer tools

localscope

localscope.readthedocs.io · Package · Online

Python package that flags functions reading global variables

Visit localscope.readthedocs.io ↗Source on GitHub ↗Share

  • scope
  • reproducibility
  • python global variables chec
  • jupyter scope bugs
  • jax pure functions
  • python decorator linter
  • localscope python
Found
20 months ago

localscope is a small Python package that disassembles functions to check whether they access global variables they should not. Its author uses it to catch scope bugs common in Jupyter notebooks and to check pure functions for JAX code, which suits Python developers writing reproducible code.

What it does

  • Disassembles functions to find global variables they access
  • Raises an error when a function uses a non-permitted global
  • Helps catch scope bugs in Jupyter notebooks

Good for

  • Catch a function that reads a stale global in a notebook
  • Check that a JAX function is pure before using it

Suits: Python developers working in Jupyter notebooks or JAX.

What you can try

Read the project documentation to see how to install and use it.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw localscope on , when tillahoffmann posted it to Show HN. There is no first-party release record KipFound is allowed to read for this product, so that listing is the earliest dated evidence on file. KipFound does not guess a release date.

Day-7 and day-30 updates

Day 7 still online

  • Product link responded normally (HTTP 200).
  • Show HN discussion at check time: 67 points, 31 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 still online

  • Product link responded normally (HTTP 200).
  • Show HN discussion at check time: 67 points, 31 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Found: tillahoffmann posted it to Show HN. Show HN
  2. Day-7 check recorded by Kip (details)
  3. Day-30 check recorded by Kip (details)

Quick answers

When was localscope released?
No dated release record is available. Kip found it on Show HN on 17 Mar 2025.
What does localscope run on?
Library.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
Product link checklocalscope.readthedocs.io

Stable ID hn-43390823. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.