-
Notifications
You must be signed in to change notification settings - Fork 10
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
Take environment variables directly from the _environment
file
#217
Comments
With the following file structure I was able to retrieve envvars that were set in an
---
engine: julia
---
```{julia}
ENV["FOO"]
```
which did give the correct output: @albertomercurio with the above MWE are you also able to see the same output, or does that also fail for you? What does not work for me, is changing the value of an envvar set in that file while the Perhaps this is the same behaviour as other engines. |
Oh, yes. I was using I think we can close this issue. But, I have just one related question. I have now the following environment variables needed for PythonCall.jl
but the python path is relative to the |
Does setting those just in the first cell of your notebook that needs then, via |
I'm currently using the following yaml configuration on each .qmd file julia:
env: ["JULIA_NUM_THREADS=16", "JULIA_CONDAPKG_BACKEND=Null", "JULIA_PYTHONCALL_EXE=../pyenv/bin/python"] since they are simply in the next subfolder. I was searching for something global. I tried to write something dynamics in the
to automatically take the python path. but this doesn't work. |
In a ```{julia}
ENV["JULIA_PYTHONCALL_EXE"] = ...
```
```{julia}
using PythonCall
``` I'd assume something like that would be fine, |
Ok thanks |
Following this page on the official documentation of Quarto, it is possible to define environment variables directly inside the
_environment
file. This is very useful when we need to define many variables used on many files.Apparently, the only way that works so far is by writing the following yaml in each file
The text was updated successfully, but these errors were encountered: