Akshay
Mmarimo
•Created by eugene on 11/8/2024 in #help-support
How to distinguish marimo notebooks from any other python files robustly and efficiently?
The marimo edit server uses the following heuristic:
https://github.com/marimo-team/marimo/blob/9668948b34ca156a3e8cef57507f3122fb9dbdfa/marimo/_server/files/os_file_system.py#L94-L99
2 replies
Mmarimo
•Created by Getty on 11/7/2024 in #help-support
i want to run code before marimo
Sorry, I don't understand the question. Can you elaborate to help our community better answer your question?
10 replies
Mmarimo
•Created by john_helt on 10/28/2024 in #help-support
pre-selecting a table row
Not currently. If you like, you could make a feature request for this on GitHub?
3 replies
Mmarimo
•Created by simaiinox on 11/1/2024 in #help-support
register data source / dataframe?
Yea GitHub issue is fine. Just to clarify, what's the main reason you'd like to register as a data source? Is it to see the schema in the data sources panel?
10 replies
Mmarimo
•Created by lovuikeng on 10/25/2024 in #help-support
How to make cell for code generation?
Long-press an answer, go to apps, mark solution. And no worries!
7 replies
Mmarimo
•Created by lovuikeng on 10/25/2024 in #help-support
How to make cell for code generation?
Does the hotkey listed in the docs not work? Otherwise, do you not see an AI option in the cell menu (three dots in top right of cell editor)
7 replies
Mmarimo
•Created by svolt863 on 10/28/2024 in #help-support
pytest - best practices
That’s an interesting idea and something we could look into if so
5 replies
Mmarimo
•Created by svolt863 on 10/28/2024 in #help-support
pytest - best practices
Haven’t actually tried implementing tests within a marimo notebook — is that what you’re doing?
5 replies
Mmarimo
•Created by john_helt on 10/24/2024 in #help-support
differences between mo.ui.dictionary and python dict?
(Cloning is not the reason to use
ui.dictionary
; Python dictionaries can also be cloned.)7 replies
Mmarimo
•Created by john_helt on 10/24/2024 in #help-support
differences between mo.ui.dictionary and python dict?
The main reason to use
mo.ui.dictionary
is for reactive execution — when you interact with an element in a mo.ui.dictionary
, all cells that reference the mo.ui.dictionary
run automatically, just like all other ui elements. When you use a regular dictionary, you don’t get this reactivity. This is the main reason to use mo.ui.dictionary
.7 replies
Mmarimo
•Created by Mustjaab on 10/19/2024 in #help-support
Using the sandbox
Can you try reinstalling? Or restarting computer?
3 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
For the particular case of script metadata/sandbox, likely
uv
also matches the Python CLI's behavior when determining the current working directory.27 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
I was expecting that the paths to be relative to the file itself, not the current directory of the command running it. Is there a spec on the behavior?We match the behavior of running Python scripts, in
python my_directory/my_script.py
, the current working directory will be the directory of the command.
We can clarify in our docs, perhaps in the FAQ.
We do have a utility for constructing paths relative to the notebook directory (mo.notebook_dir()
), but I guess that won't help for the script metadata.27 replies
Mmarimo
•Created by lovuikeng on 10/18/2024 in #help-support
Keep ui table state of selected rows
Responded to you in general, but this channel is more appropriate, thank you for reposting. Copying response here:
Ah I think that's a bug, the selection should likely be internal state. cc @Wasim , in case you have time to look at this. Here's a repro: https://marimo.app/?slug=bef8pr
4 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
Let me know if it works for you now?
27 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
Disregard my previous message on not adding a local file, since you are populating
uv-sources
your use case makes sense.27 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
We recently implemented support for
uv-sources
. I just cloned your repo and tried it, and it works (using marimo 0.9.10).27 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
Mm I see. Sorry for the short messages, a little busy today.
27 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
I see now that you manually added that
27 replies
Mmarimo
•Created by Nathan on 9/29/2024 in #help-support
`DataLoader` with `num_workers=1` crashes?
Oh wait, you shouldn't be adding a local file as a dependency
27 replies