Skip to content

[FEATURE]: Detect notebook include graph by analysing %run magic cells #1201

@nfx

Description

@nfx

Is there an existing issue for this?

  • I have searched the existing issues

Problem statement

From https://docs.databricks.com/en/notebooks/notebook-workflows.html:

The %run command allows you to include another notebook within a notebook. You can use %run to modularize your code, for example by putting supporting functions in a separate notebook. You can also use it to concatenate notebooks that implement the steps in an analysis. When you use %run, the called notebook is immediately executed and the functions and variables defined in it become available in the calling notebook.

image

Proposed Solution

Detect %run magic cells and treat them as a dependency

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    migrate/codeAbstract Syntax Trees and other dark magic

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions