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

Changing working directory from RStudio #142

Open
BigFlagBurito opened this issue Aug 10, 2023 · 1 comment
Open

Changing working directory from RStudio #142

BigFlagBurito opened this issue Aug 10, 2023 · 1 comment

Comments

@BigFlagBurito
Copy link

Proposed change

Currently, the working directory is always /home/jovyan when RStudio is started.
I have Jupyterhub running on Kubernetes, I have set it so that the Home Env variable is HOME=/home/<username>. Also, the working direcory of kubespawner is also /home/<username>: spawner.working_dir = spawner._expand_user_properties("/home/{username}")
Unfortunately, I have not found a way to customise the working directory of RStudio.

Why is this a problem?
The file system for the user is attached to /home/{username}. This means that files are only stored in this file system. But since RStudio accesses /home/jovyan, the user has no access to his files and new files cannot be saved.

Alternative options

I have not found a solution to my problem, not even via the Jupyter forum. Therefore I decided to submit the suggested feature.

Who would use this feature?

I assume that there are some who have changed the working directory of Jupyterhub to fit the users and would like to use RStudio as well. They would then not have the problem of searching forever for a solution.

(Optional): Suggest a solution

A spontaneous idea would be.
With a flag in e.g. a config, RStudio takes the ENV variable JUPYTERHUB_USER and creates the working directory /home/username from it.
If there are better possibilities, it would of course be better.

@welcome
Copy link

welcome bot commented Aug 10, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant