john_helt
john_helt
Mmarimo
Created by john_helt on 10/28/2024 in #help-support
pre-selecting a table row
3 replies
Mmarimo
Created by john_helt on 10/24/2024 in #help-support
differences between mo.ui.dictionary and python dict?
thanks for the very detailed explanation. It makes sense. I guess it would be great info to add on the docs as well?
7 replies
Mmarimo
Created by john_helt on 10/22/2024 in #help-support
running async inside sync cells
the function I need to call is inside a callback that is triggered when the user clicks a button. but I cant use async callbacks can I, so I have to make it sync ..
7 replies
Mmarimo
Created by john_helt on 10/22/2024 in #help-support
running async inside sync cells
Thanks, I did read about that, but it seems very hacky indeed 🙂
7 replies
Mmarimo
Created by john_helt on 10/1/2024 in #help-support
Accessing session cookies from marimo
thanks for the suggestion. I made this work, but then I realized that the cookies I was aiming for was not the ones set on the client, but rather the ones sent by on the instantiation request. This is because my marimo deployment is behind a proxy which appends a cookie to the request, which contains a username that I would like to fetch in marimo to build in some kind access control
4 replies
Mmarimo
Created by john_helt on 9/30/2024 in #help-support
Disabling UI at runtime
Unfortunately, I couldn't get that to work. Maybe it would be an idea to add "disabled" as a keyword to any type of HTML (or a callout style)?
8 replies
Mmarimo
Created by john_helt on 9/30/2024 in #help-support
Disabling UI at runtime
great! I'll try this out!
8 replies
Mmarimo
Created by john_helt on 9/30/2024 in #help-support
Disabling UI at runtime
I'm working alot with composite components stacked using vstack or batch
8 replies
Mmarimo
Created by john_helt on 9/30/2024 in #help-support
Disabling UI at runtime
It could be a stack of components assembled with vstack or hstack.
8 replies
Mmarimo
Created by john_helt on 9/17/2024 in #help-support
Controlling table column width
I worked around it using checkboxes and, vstack and hstack with "widths"
7 replies
Mmarimo
Created by john_helt on 9/17/2024 in #help-support
Controlling table column width
no worries, thanks for your quick reply
7 replies
Mmarimo
Created by john_helt on 9/17/2024 in #help-support
Controlling table column width
I could use .center() to make the table smaller, but it's not really what I want
7 replies
Mmarimo
Created by john_helt on 8/19/2024 in #help-support
Strange behavior when using allow_self_loops=True on states
FYI: the update works, but the strange error message is a bit of an eyesore
3 replies
Mmarimo
Created by john_helt on 6/25/2024 in #help-support
Possibility of modifying object to which on_change handler is bound
That seems to work! Thanks, not sure I understand why though
8 replies
Mmarimo
Created by john_helt on 6/25/2024 in #help-support
Possibility of modifying object to which on_change handler is bound
# Cell 1
get_test, set_test = mo.state(False)

# Cell 2
_test=get_test()
def _on_change(*args):
set_test(True)
_t= mo.ui.text(label="hello world" if not _test else "hello world*", on_change=_on_change)

_t
# Cell 1
get_test, set_test = mo.state(False)

# Cell 2
_test=get_test()
def _on_change(*args):
set_test(True)
_t= mo.ui.text(label="hello world" if not _test else "hello world*", on_change=_on_change)

_t
8 replies
Mmarimo
Created by john_helt on 6/25/2024 in #help-support
Possibility of modifying object to which on_change handler is bound
Hi, thanks for the reply. I tried with something like this, where on_change calls a state setter, and the cell that creates the UI element, with this on_change bound to it, is initialized with the same state getter, but it seems I need to manually re-run the cell to get it to update
8 replies
Mmarimo
Created by john_helt on 6/18/2024 in #archived-help-and-support
Hi! Is it possible to use a different
Hi! And sorry for not replying earlier with a thanks for your very detailed reply. I was on a long weekend, so I didn't check my messages until today. I actually played around with the mo.ui.file feature, and it seems the files are uploaded to the server memory, so they exists as python objects as a Bytes type, rather than actual files. So maybe the limit of 100 mb is related to memory, rather than disc-space? Regarding the backend, I am using AWS, and I create a client to upload files. The client is configured using environment variables, so I'm thinking it would be safe enough not to expose the endpoint to the app users.
3 replies
Mmarimo
Created by john_helt on 6/10/2024 in #archived-help-and-support
hi, I have a question regarding the
5 replies
Mmarimo
Created by john_helt on 6/10/2024 in #archived-help-and-support
hi, I have a question regarding the
i've made a bug report on github
5 replies