jupyter / jupyter_client

Jupyter protocol client APIs
https://jupyter-client.readthedocs.io
BSD 3-Clause "New" or "Revised" License
390 stars 284 forks source link

Allow to update kernels env in between restart. #987

Closed Carreau closed 1 year ago

Carreau commented 1 year ago

This allow to update the running env of kernels.

This will allow resolves some inconsistencies between kernel restart, and actually stopping and starting a kernel session.

In parsley via a few lines in Jupyter Server in update_session, this will let us update the __session__ which is supposed to reflect some information about the current session, and help correct ipython/ipykernel#1102 where renaming a notebook is not reflected in the kernel unless you manually stop/start the session, or restart the server.