Get help from the marimo community

Updated last month

Loguru logger.remove() hangs Marimo now

At a glance
I use Loguru for log messages and up until recently, I've been able to use
Plain Text
logger.remove(None)
without issue. I then create my own formatted logger with
Plain Text
logger.add(...)
. However, for a while now (maybe a week?) I've noticed that running the remove line of code when editing the notebook just hangs. I have to restart the kernel, comment this out, and then run. I don't get the new logger format that I wanted, because I have to comment out the add() as well or have duplicate messages printed, but I can then run in edit mode. Any ideas on what changed?
M
J
2 comments
I don't think we've made any changes that would affect this. are you running these loggers in another thread?
if you can create a minimal repo, can you file a GH issue?
Here's a picture of the minimal repo. As you can see, the first cell was running for 2 minutes and 46 seconds when I took the screen clip. It's now at 4 minutes. I'll file a GH issue.
Add a reply
Sign up and join the conversation on Discord