Get help from the marimo community

Home
Members
JamesJohnson
J
JamesJohnson
Offline, last seen last month
Joined November 25, 2024
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?
2 comments
M
J
Lately, maybe for the past two weeks or so, I've been getting this message from the Marimo screen. I can sometimes get it to work, but most of the time now it's just this message. Any ideas on how to correct? I was hoping not to open new shell and browser window for every single project so I've been using the parent directory when I open Marimo.
5 comments
J
M
I use log messages to indicate where in the process the script is. Today, I've noticed that the more log messages get printed to one cell, the slower Marimo becomes. I don't think this affects when running from command line, but when in edit mode, if I allow all messages to be printed, then the notebook becomes completely unresponsive. Prior to Christmas I don't believe I had this issue and would be able to print all the messages without any issues, but I'm not completely sure about that.
2 comments
M
J
This morning I updated to Marimo 0.9.15 and now I'm receiving an "Error: Invalid time value" when trying to display an Ibis or a Polars dataframe that contains a timestamp column that is null.

Here's some simple code that replicates what I'm seeing:
Plain Text
df = (
    pl.date_range(date(2001, 1, 1), date(2001, 1, 3), eager=True)
    .alias("date")
    .to_frame()
)
df.with_columns(
    pl.col("date").dt.timestamp().alias("timestamp_us"),
    pl.col("date").dt.timestamp("ms").alias("timestamp_ms"),
    pl.lit(None).cast(pl.Datetime).alias("test")
)