Skip to content

[BUG]: Notebooklinter does not bring variables from %run into scope #3557

Open
@JCZuurmond

Description

@JCZuurmond

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Notebooklinter does not bring variables from %run into scope:

# Notebook called "child"
table_name = "table"
# Notebook called "parent"
%run ./child
spark.table(table_name)  # Cannot infer table name

Expected Behavior

%run should have brought the table_name into the parent's notebook scope

Steps To Reproduce

No response

Cloud

Azure

Operating System

macOS

Version

latest via Databricks CLI

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    2026-BUGmigrate/codeAbstract Syntax Trees and other dark magicmigrate/pythonPull requests that update Python codepythonPull requests that update Python code

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions