15 May 2019

Bookmarklet for those using Paperspace Gradient Notebooks regularly.

If you use notebooks regularly/daily, and you switch it off, next day the notebooks have a new ID, so all the windows/tabs you left open are not valid anymore.

Things like
https://nx6awj8s.gradient.paperspace.com/terminals/1
https://nx6awj8s.gradient.paperspace.com/lab

Should now be
https://different.gradient.paperspace.com/terminals/1
https://different.gradient.paperspace.com/lab

You can open the pages again or update the urls manually.

Well, I created this little bookmarklet that will ask you for the new Notebook ID (you can get it before the gradient/notebook is fully loaded) and apply it one by one to each tab/window.




javascript:(function() { var notebookID= prompt("Enter New Notebook ID","");  if (notebookID)   window.location=window.location.toString().replace(/\/\/\w{5,9}/,"//"+notebookID); })()

Just create a bookmark and then substitute its url for the code

O maybe bookmark this   UpdateNotebook
(you can change the name to whatever you want)

I hope it helps.

0 Comments:

Post a Comment

<< Home

Too Cool for Internet Explorer