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

Run only blocks with specific tags #228

Closed
rikhuijzer opened this issue Sep 28, 2021 · 4 comments
Closed

Run only blocks with specific tags #228

rikhuijzer opened this issue Sep 28, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@rikhuijzer
Copy link
Collaborator

Allow the user set a tag to one or more code blocks. For example,

```jl foo
1 + 1
```

```jl foo
2 + 2
```

And only run this code when doing gentag("foo") or gentag(["foo", ...]).

@rikhuijzer rikhuijzer added the enhancement New feature or request label Sep 28, 2021
@rikhuijzer
Copy link
Collaborator Author

Or use line numbers/ranges to avoid having to set tags

@rikhuijzer
Copy link
Collaborator Author

Even better: use start and end strings like how it’s easy to find the line which throws an error.

benefit is that strings are more flexible starting points than line numbers

@rikhuijzer
Copy link
Collaborator Author

rikhuijzer commented Dec 9, 2021

A Pluto integration would probably be better via PlutoStaticHTML.

@rikhuijzer
Copy link
Collaborator Author

Fixed in #289. It's now possible to run gen(file, block_number). The block number can be found by letting the block throw an error (or manually counting, of course).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant