Replies: 4 comments 4 replies
-
Quarto doesn't activate conda environments itself, rather it runs within whatever conda environment it finds itself within. So I'd suggest just making sure that your shell or IDE is using the requisite environment before rendering. |
Beta Was this translation helpful? Give feedback.
-
I have a work around that works for me but I'm not entirely sure this is the proper usage. I'm using vscode and what I always make sure of is that the kernel used in my current vscode session is the one I want to be used to render my qmd file. In vscode this can be done on the bottom right corner while having a .py file open and selecting the desised kernel. Similar to running ipykernel interactively. |
Beta Was this translation helpful? Give feedback.
-
From the documentation: In my case, I had installed python3 and jupyter on my Mac using Anaconda. So, the path to my python install was: /Users/odebroqueville/opt/anaconda3/bin/python but VS Code was using the python path provided by Xcode and therefore couldn't find jupyter. Setting the correct path in the environment variable: QUARTO_PYTHON=/Users/username/opt/anaconda3/bin/python and restarting the terminal in VS Code fixed the problem. I used fig (from fig.io) to set the env var, but you could just as well set the env var in ~/.zshrc I guess. Here's the result in VS Code: |
Beta Was this translation helpful? Give feedback.
-
From the quarto docs, update the YAML with your local conda file created with the prefix flag.
I put a quick blog together to record it. Hope it helps someone. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using quarto to write my blog posts. I would like to create a conda env for my latest posts because it uses some other frameworks and I don't want to bork my base env.
Is there a way to specify which conda env I want to use in the front matter if the index.qmd? If not in the front matter, is there a way to do it at all?
Beta Was this translation helpful? Give feedback.
All reactions