Skip to content

Automatically run other cells if it's needed #1585

@gojanpaolo

Description

@gojanpaolo

Is there a way to automatically run other cells if it's needed?
For example, if I have the following

```
export url="https://example.com"
```

```
curl "${url}/v1"
```

```
curl "${url}/v2"
```

Let's say I have a new session, if I run curl "${url}/v1", it should automatically run the first block because it needs the url variable. But it should not automatically run curl "${url}/v2.

Same goes if I run curl "${url}/v2, it should also automatically run the first block. But it should not automatically run curl "${url}/v1"

VS Code's REST Client extension has this kind of feature: https://github.com/Huachao/vscode-restclient?tab=readme-ov-file#variables

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions