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

Creating a terminal doesn't open in correct folder #5

Open
MRichards99 opened this issue Sep 2, 2019 · 1 comment
Open

Creating a terminal doesn't open in correct folder #5

MRichards99 opened this issue Sep 2, 2019 · 1 comment

Comments

@MRichards99
Copy link

Upon testing the libcloudspawner, I've noticed that when creating a terminal in Jupyterhub, the terminal starts in /tmp by default, rather than the folder I've specified in c.LibcloudSpawner.notebook_dir

I've noticed on the VM spawned, that the systemd file shows the WorkingDirectory is set to /tmp, perhaps this is a starting point for you?

This is using libcloudspawner 1.3.0.0rc1, Jupyterhub 1.0.0

@tristanlt
Copy link
Member

Dear @MRichards99
I know that this information in a very vert late and probably useless, but...

If you configure libcloudspawner with this parameter in jupyterhub_config.py

c.LibcloudSpawner.notebookargs = "--notebook-dir / --preferred-dir \$HOME"

JupyterLab will be opened in user home directory BUT user will be allowed to browse /. This is useful for allowing user to use SCRATCH and shared folders that's not in user homedir.

Did you finally use this spawner for any time ?

Best regards,
Tristan

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

2 participants