{"id":1058,"date":"2025-04-22T15:07:33","date_gmt":"2025-04-22T15:07:33","guid":{"rendered":"https:\/\/doublelayer.eu\/vilab\/?p=1058"},"modified":"2025-04-22T15:07:33","modified_gmt":"2025-04-22T15:07:33","slug":"reconnecting-colab","status":"publish","type":"post","link":"https:\/\/doublelayer.eu\/vilab\/2025\/04\/22\/reconnecting-colab\/","title":{"rendered":"Reconnecting colab"},"content":{"rendered":"\n<p>Recently I noticed that my colab notebooks get too often disconnected. Yes, their run takes over an hour, which is a usual timing for a seminar. I just want to test that they run by executing all cells and leaving my workplace.<\/p>\n\n\n\n<p>Here is how to set up an automatic reconnect using javascript functions that one can enter to the browser console:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function ConnectButton() {console.log(\"Working\");document.querySelector(\"#connect\").click()}\nsetInterval(ConnectButton,600000);<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I noticed that my colab notebooks get too often disconnected. Yes, their run takes over an hour, which is a usual timing for a seminar. I just want to test that they run by executing all cells and leaving my workplace. Here is how to set up an automatic reconnect using javascript functions that&hellip; <a class=\"read-more\" href=\"https:\/\/doublelayer.eu\/vilab\/2025\/04\/22\/reconnecting-colab\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[70],"class_list":["post-1058","post","type-post","status-publish","format-standard","hentry","category-know-how","tag-python-notebook"],"_links":{"self":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/1058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/comments?post=1058"}],"version-history":[{"count":1,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/1058\/revisions"}],"predecessor-version":[{"id":1059,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/1058\/revisions\/1059"}],"wp:attachment":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/media?parent=1058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/categories?post=1058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/tags?post=1058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}