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

passing working directory between languages #2757

Open
s-u opened this issue Aug 12, 2021 · 0 comments
Open

passing working directory between languages #2757

s-u opened this issue Aug 12, 2021 · 0 comments

Comments

@s-u
Copy link
Collaborator

s-u commented Aug 12, 2021

It would be nice if cells of different languages would be able to pass some basic state such as the working directory. Currently using shell cells the working directory doesn't get passed even between subsequent shell cells, in R and kernel-based languages it does. However, in none of the case does it pass between cells of different languages. Ideally, we would have some state that is synchronized between cells, working directory being the prime example but some environment variables would be another.

This is not easy to implement in general, since the management of the state will be language-specific (e.g., chdir in the shell, setwd() in R, os.chdir() in Python...). But having some hooks to get/set the state would be the first step.

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