1data = [1, 2, 3, 4]
2
3
4def data_to_html_table(data):
5 html = '<table><tbody>'
6 for item in data:
7 html += '<tr><td>' + str(item) + '</td></tr>'
8 html += '</tbody></table>'
9 return html
10
11print data_to_html_table(data)
12
13#credit to stackoverflow.com
1function ConnectButton(){
2 console.log("Connect pushed");
3 document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
4}
5setInterval(ConnectButton,60000);