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

Kernel current working directory when file is moved #5989

Open
jasongrout opened this issue Feb 14, 2019 · 4 comments
Open

Kernel current working directory when file is moved #5989

jasongrout opened this issue Feb 14, 2019 · 4 comments
Milestone

Comments

@jasongrout
Copy link
Contributor

If we move an .ipynb file with a running kernel, it seems that the kernel's current working directory isn't changed. I think this makes sense thinking about the kernel process as a separate thing from the file location, but users can be confused.

What is our story around this workflow? Should we offer to restart a kernel to make it easier on user expectations? Should we just say this is working as designed?

@jasongrout jasongrout added this to the Future milestone Feb 14, 2019
@bollwyvl
Copy link
Contributor

bollwyvl commented Feb 15, 2019 via email

@jasongrout
Copy link
Contributor Author

I agree that we can't really affect the kernel (I mean, who knows how to change the current working directory of random kernel XYZ?). I think the best we'd be able to do is offer to restart the kernel with the "right" working directory, or like you said, just flag the potential problem for the user.

@ellisonbg
Copy link
Contributor

Another things to consider - there is no guarantee the kernel is running on the same system and seeing the same files as the UI. So even restarting the kernel in that dir may not be possible.

@n-a-sz
Copy link

n-a-sz commented Apr 9, 2019

Maybe a warning message when the notebook is moved and there is a running kernel for it would be enough. Also the message could contain that a brand new python kernel is needed and restarting it won't solve the working directory issue (if it is a feature of restarting the kernel and not a bug).

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

4 participants