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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate fails if self.serverapp.root_dir not writable #326

Open
jhgoebbert opened this issue Aug 9, 2023 · 1 comment
Open

generate fails if self.serverapp.root_dir not writable #326

jhgoebbert opened this issue Aug 9, 2023 · 1 comment
Labels
bug Something isn't working @jupyter-ai/chatui

Comments

@jhgoebbert
Copy link

Hello and thank you for this great extension 馃憤

Description

We are facing a Permission denied-issue when jupyter-ai is asked to generate a notebook.
It tries to generate the file in the directory set by self.serverapp.root_dir which is not writable.
https://github.com/search?q=repo%3Ajupyterlab%2Fjupyter-ai%20root_dir&type=code

Reproduce

If one starts a JupyterLab on a multi-user-system and wants to be able to browse all files this is set to
c.ServerApp.root_dir = '/'
Of course this root_dir is not writable and so jupyter-ai fails with Permission denied.

Possible solution

Instead of self.serverapp.root_dir the current directory of the filebrowser could be used.
(perhaps similar to the jupyterlab-git extension?)

@jhgoebbert jhgoebbert added the bug Something isn't working label Aug 9, 2023
@welcome
Copy link

welcome bot commented Aug 9, 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
Labels
bug Something isn't working @jupyter-ai/chatui
Projects
None yet
Development

No branches or pull requests

2 participants