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

Provide options to specify working directory for Quarto, .Rmd, notebooks #4692

Open
juliasilge opened this issue Sep 16, 2024 Discussed in #4688 · 1 comment
Open

Provide options to specify working directory for Quarto, .Rmd, notebooks #4692

juliasilge opened this issue Sep 16, 2024 Discussed in #4688 · 1 comment
Labels
area: core Issues related to Core category. area: quarto Issues related to Quarto category. enhancement New feature or request support

Comments

@juliasilge
Copy link
Contributor

juliasilge commented Sep 16, 2024

Folks coming from RStudio are used to having options for what their .Rmd and .qmd files use as the working directory:

Discussed in #4688

Originally posted by AndrewSkelton September 15, 2024

Hi,

Typical behavior in RStudio was that when an Rmd file was open, paths in the notebook were relative to where the file was located, this doesn't seem to be the same in Positron. Is there a setting to enable that?

Thanks,

Andrew

In #2648 we changed the working directory for .ipynb files to default to the location of the notebook file, and this is like an analogous request for our other notebook-ish files.

RStudio offers this as an option:

Screenshot 2024-09-16 at 11 25 29 AM

I will say that personally I find this behavior for notebooks and notebook-adjacent things pretty confusing (it has surprised me more times than I would like to admit!) and I like that RStudio lets me opt out from this automatic mucking about with my working directory.

@juliasilge juliasilge added area: core Issues related to Core category. area: quarto Issues related to Quarto category. enhancement New feature or request support labels Sep 16, 2024
@jmcphers
Copy link
Collaborator

There's also an issue requesting that we do this for Python scripts. #3156

@juliasilge juliasilge added this to the 2024.12.0 Pre-Release milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues related to Core category. area: quarto Issues related to Quarto category. enhancement New feature or request support
Projects
None yet
Development

No branches or pull requests

2 participants