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

Babel "functional mode" and argument passing? #7

Open
fosskers opened this issue Jun 1, 2021 · 1 comment
Open

Babel "functional mode" and argument passing? #7

fosskers opened this issue Jun 1, 2021 · 1 comment

Comments

@fosskers
Copy link

fosskers commented Jun 1, 2021

Is it (or could it be) possible to pass arguments to Rust snippets from previous source blocks, as in this example:

#+name: directories
#+begin_src sh
cd ~/sync/org && du -sc * | grep -v total
#+end_src

#+RESULTS: directories
|   8 | 2019.org     |
| 156 | 2020.org     |
|  28 | 2021.org     |
|  68 | coding.org   |
|   4 | history.txt  |
|   4 | notes.org    |
|   4 | sysadmin.org |

#+begin_src python :var dirs=directories
return len(dirs)
#+end_src

#+RESULTS:
: 7

Thank you.

@fosskers
Copy link
Author

Hi there, any thoughts?

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

No branches or pull requests

1 participant