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

Cannot open file via "Open from path" #6351

Closed
bagustris opened this issue May 15, 2019 · 6 comments
Closed

Cannot open file via "Open from path" #6351

bagustris opened this issue May 15, 2019 · 6 comments
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone

Comments

@bagustris
Copy link

Describe the bug
Cannot open a file, the error said: file not found. I tried both *.ipynb and *.py files, also other file types.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'FIle'
  2. Click on 'Open from path'
  3. Insert the 'path'
  4. See error

Expected behavior
(python) files from "open from path" is opened in tab.

Screenshots
Screenshot from 2019-05-15 10-55-25
Screenshot from 2019-05-15 10-55-41

Desktop (please complete the following information):

  • OS: Ubuntu 16.04
  • Browser: Firefox 66.0.5
  • JupyterLab: 0.35.6
@jasongrout jasongrout added this to the Reference milestone May 21, 2019
@jasongrout
Copy link
Contributor

What directory did you launch jupyterlab in, and what is the path you are trying to open? The paths for this dialog are rooted at the directory in which you launched jupyterlab.

@bagustris
Copy link
Author

I open with in home, and I want to open directory in a place using absolute path like,
/media/user/data/file.py

I check the ownership of the path, and it is already owned by user.
In case of opening files in home directory, it works.

So, that feature (open from path) is only working on the current rooted directory where jupyterlab is opened?

@jasongrout
Copy link
Contributor

So, that feature (open from path) is only working on the current rooted directory where jupyterlab is opened?

Right. A security decision for the notebook server is that it will only serve files below the directory it was started in.

@jasongrout
Copy link
Contributor

(note that symbolic links work - if you make a symbolic link from that file into somewhere below where the server started, it should work)

@jasongrout
Copy link
Contributor

Closing as answered - feel free to ask more questions if you need, though.

@lock
Copy link

lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related discussion.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
@jasongrout jasongrout added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

No branches or pull requests

2 participants