Get help from the marimo community

k
kobe
Offline, last seen last month
Joined January 22, 2025
k
kobe
·
S
Solved

custom snippets

Is there a way to add custom snippets instead of the default snippets?
4 comments
H
S
k
kobe
·

threading

Hello, i want to use a long living thread in my notebook. I dumbed it down to this basic example:
Plain Text
import threading
import time
threading.Thread = mo.Thread

def run_long():
    while True:
        print("looping")
        time.sleep(1)

bar = threading.Thread(target=run_long)
bar.start()


When i run this cell, looping is only printed once (it looks like the while loop stop after one iteration).
6 comments
M
S
k