Request: A function to retrieve the collab id within a Jupyter notebook


I would like to request adding a function to the Jupyter notebooks to return the current collab id.

I know that there are workarounds using %%javascript cells or introspecting the get_collab_storage_path() function, but this is such a common thing I need to do that I think it should be built in.

Ideally this would be within an importable module (e.g. “collab_helpers”) so that the functionality can be used from within libraries.

Many thanks,