Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A potential footgun #227

Open
tlienart opened this issue Jul 12, 2023 · 0 comments
Open

A potential footgun #227

tlienart opened this issue Jul 12, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@tlienart
Copy link
Owner

```!
a = 5
```

```!
b = 5
a + b
```

```!
a = 10
```

If you then just do a change to b, then only that will get re-evaluated as well as cells below it (so that it's a=10 that will be used).

Solving this generally seems hard (Pluto style...) probably better to just

  1. recommend users don't redefine variables carelessly within a page
  2. if they really want to, that they put a !! on the first cell so that the whole page is evaluated on every change (because it would always get re-evaluated and, therefore, so will all the cells below it).
@tlienart tlienart added the documentation Improvements or additions to documentation label Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant