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

Support Quarto Parameters #51

Closed
hugetim opened this issue Oct 12, 2024 · 3 comments
Closed

Support Quarto Parameters #51

hugetim opened this issue Oct 12, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@hugetim
Copy link
Owner

hugetim commented Oct 12, 2024

I know with quarto we can set environmental variables then feed them into
python or R.
Do you think that could be done for nbstata too?

Originally posted by @friosavila in #50 (comment)

Definitely. I found the instructions for how to add support for that while I was researching the inline code issue: https://quarto.org/docs/advanced/jupyter/kernel-execution.html#quarto-document-options

Should we use globals to store the parameters? Or scalars?

I'll aim for this month.

@friosavila
Copy link

friosavila commented Oct 12, 2024 via email

@hugetim hugetim added the enhancement New feature or request label Oct 15, 2024
@hugetim
Copy link
Owner Author

hugetim commented Oct 18, 2024

Ok, the thing required to get it to work turned out to be adding Stata support to a different package, Papermill: nteract/papermill#809

I'm not sure how long it will take for the papermill maintainers to merge the PR and release a new version. Meanwhile, Parameters should work for Stata if you install my patched version of papermill like this:
pip install git+https://github.com/hugetim/papermill@patch-1

@hugetim hugetim closed this as completed Oct 18, 2024
@friosavila
Copy link

friosavila commented Oct 18, 2024 via email

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

2 participants