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

Update kernel env to reflect changes in session. #1341

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

Carreau
Copy link
Contributor

@Carreau Carreau commented Oct 23, 2023

This rely on jupyter/jupyter_client#987 and fixes ipython/ipykernel#1102 When a user rename the notebook in the UI, it will update the kernel env, so that the __session__ variable reflect the new name on the next restart.

It does seem that each rename of a notebook in JupyterLab creates 4 update_session (2 with name, and 2 with path), but that does not seem to be a problem in this repository.

This rely on jupyter/jupyter_client#987 and fixes ipython/ipykernel#1102
When a user rename the notebook in the UI, it will update the kernel
env, so that the ``__session__`` variable reflect the new name on the
next restart.

It _does_ seem that each rename of a notebook in JupyterLab creates 4
update_session (2 with name, and 2 with path), but that does not seem to
be a problem in this repository.
@Carreau Carreau marked this pull request as ready for review October 23, 2023 13:44
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@blink1073 blink1073 merged commit 3438ddb into jupyter-server:main Oct 25, 2023
35 of 36 checks passed
blink1073 added a commit that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__session__ picks up new name of a notebook only through specific kernel restarts
2 participants