jupyter_server icon indicating copy to clipboard operation
jupyter_server copied to clipboard

server info should include executable

Open maartenbreddels opened this issue 2 years ago • 1 comments

Problem

It is useful for a kernel to know if it shares the same Python environment with the server. For ipywidgets and libraries we can do some automated checks to see if there a library is installed in a different environment as the server.

Proposed Solution

The server info contains the PID of the jupyter server, but getting the executable from that is platform dependant. If we would simply store sys.executable along with the rest of the information, that would be very helpful.

maartenbreddels avatar Feb 15 '23 13:02 maartenbreddels

This makes good sense to me @maartenbreddels - thanks for creating this issue. I don't see any compatibility issues with this. I suppose some external apps could read the server info files and be strict about "unknown" keys, but that would be extreme, and this field would be purely informational.

Will you be providing the PR once a general consensus has been met?

kevin-bates avatar Feb 15 '23 16:02 kevin-bates