You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fork of remote_ikernel which I use to connect to a kernel on a remote host. I also have a contents manager that overrides the / directory to mount a virtual filesystem (this is not a physical location on disk) so when I open a notebook from this virtual filesystem, remote_ikernel thinks the cwd is /, which is incorrect.
(the notebook path could be from something like - /<virtual-dir-prefix>/u/$USER/Untitled.ipynb, I expect the cwd to be /u/$USER/ on the remote host but it is set to /)
I want a way to communicate to remote_ikernel what the correct path is.
Proposed Solution
I propose adding an environment variable (say, JPY_NOTEBOOK_DIR) which I can use in my fork of remote_ikernel to switch to the correct cwd.
Additional context
I have tried using a custom SessionManager to do this but the current implementation adds alot of maintenance overhead to keep our version in sync with the latest releases of jupyter_server. Hence I propose making the change in jupyter_server itself.
The text was updated successfully, but these errors were encountered:
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.
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! 🎉
divyansshhh
added a commit
to divyansshhh/jupyter_server
that referenced
this issue
Sep 14, 2022
Problem
I have a fork of remote_ikernel which I use to connect to a kernel on a remote host. I also have a contents manager that overrides the
/
directory to mount a virtual filesystem (this is not a physical location on disk) so when I open a notebook from this virtual filesystem, remote_ikernel thinks the cwd is/
, which is incorrect.(the notebook path could be from something like -
/<virtual-dir-prefix>/u/$USER/Untitled.ipynb
, I expect the cwd to be/u/$USER/
on the remote host but it is set to/
)I want a way to communicate to remote_ikernel what the correct path is.
Proposed Solution
I propose adding an environment variable (say,
JPY_NOTEBOOK_DIR
) which I can use in my fork ofremote_ikernel
to switch to the correct cwd.Additional context
I have tried using a custom SessionManager to do this but the current implementation adds alot of maintenance overhead to keep our version in sync with the latest releases of
jupyter_server
. Hence I propose making the change injupyter_server
itself.The text was updated successfully, but these errors were encountered: