when i click on compare fork, a diff page is created
May i know what i have to do to share the above comparison page with other people. It shows “Sorry, we couldn’t find that page” when i opened this link in another browser.
It appears that version 156 of your notebook is private:
Thus the compare link ends up being private as well. I don’t know if there’s a way to directly share a link to a previous version which is private, since the “Enable link sharing” menu item doesn’t appear.
One workaround which comes to mind is to use the “History” feature to revert to the old version and then re-publish your notebook. You can then “revert the revert” to go back to your previously published version, re-publish yet again, and then share the compare link.
Another scenario which shows error page is when comparing within a public notebook, i.e., comparing history to its latest, in above Notebook3, when clicking “view history” and select version 156, then “compare to latest”
The above link is also not shareable although both 156 and 160 are public.
It seems currently the only working solution to share a diff page is to publish, then go to history, fork out, publish, edit, and then compare with fork.
Just so we’re on the same page: by “publish” you mean creating a share link, right? That is, you’re aware that you don’t have to “publish”-publish a notebook to grant access?
@tom Would it be possible to allow retroactive sharing of past revisions?
Technically you can publish or share older versions through the API using the developer console, but this capability is not exposed in the UI (and if you published an older version it would replace the version shown to readers); the Publish and Reshare buttons always use the latest version of the notebook.
In general we don’t expose all versions in history because we think it’s better for authors to have control over what versions are visible to readers, but we don’t currently allow retroactive toggling to which individual versions are visible. The easiest way to workaround that currently is probably to fork the notebook at the versions you want to share and then share or publish those separately.
Just drop the code in the console, then copy the document ID + version from the URL (ideally while in the history view), and call the function like this: