Jupyter Hub Link with Python Code Snippet

What about the discussion here? Any applicable tech there?
Or /hub/user-redirect?
Or just the now built-in “Copy Shareable Link”? The newer JupyterLab seems to allow that with Python files.