Chandler
Chandler
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
Thanks @Akshay ! Responded in the github issue. Appreciate the response 🙏
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
I'm sorry, I'm not sure I understand
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
None of the buttons worked when I inlined them inside the vstack a la elements.append(mo.ui.button())`
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
Would it be useful for me to open a GH issue?
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
But it does with work with mo.ui.array
def _on_click(value):
print('in _on_click')

foo_arr = ["uno", "dos", "tres"]

_element_arr = []
for label in foo_arr:
_button = mo.ui.button(label=label, on_click=_on_click)
_element_arr.append(_button)

_element = mo.ui.array(_element_arr)

_element
def _on_click(value):
print('in _on_click')

foo_arr = ["uno", "dos", "tres"]

_element_arr = []
for label in foo_arr:
_button = mo.ui.button(label=label, on_click=_on_click)
_element_arr.append(_button)

_element = mo.ui.array(_element_arr)

_element
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
I don't know what you mean by a fluid API, but it doesn't work with a vstack. In the following example, only the last button works
def _on_click(value):
print('in _on_click')

foo_arr = ["uno", "dos", "tres"]

_element_arr = []
for label in foo_arr:
_button = mo.ui.button(label=label, on_click=_on_click)
_element_arr.append(_button)

_element = mo.vstack(_element_arr)

_element
def _on_click(value):
print('in _on_click')

foo_arr = ["uno", "dos", "tres"]

_element_arr = []
for label in foo_arr:
_button = mo.ui.button(label=label, on_click=_on_click)
_element_arr.append(_button)

_element = mo.vstack(_element_arr)

_element
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
No description
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
(I updated the code) I'll give mo.ui.array a go
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
Ok, now that I'm applying this to my actual marimo app, I'm wondering if it's possible to create buttons programmatically within a loop Psuedocode:
vendors = query_potential_vendors()

_element_stack = []

for vendor in vendors:
_element_stack.append(mo.ui.button(...)

mo.vstack(_element_stack)
vendors = query_potential_vendors()

_element_stack = []

for vendor in vendors:
_element_stack.append(mo.ui.button(...)

mo.vstack(_element_stack)
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
Thank you
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
Yup, that fixed it def _on_click(value): print('in _on_click') _button = mo.ui.button(label="Test", on_click=_on_click) _element = mo.vstack([_button]) _element
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
25 replies
Mmarimo
Created by Chandler on 3/9/2024 in #archived-help-and-support
I think I'm encountering a bug where mo.
Details below
25 replies
Mmarimo
Created by Chandler on 3/2/2024 in #archived-help-and-support
Deployed Marimo Failed to Instantiate Errors
Ah, gotcha. That's almost certainly it. Thank you for the response. Might i suggest adding a quick callout to the docker deployment page in the docs to use a single instance? Also, definitely no need for this for now, but I imagine that sticky sessions on the proxy/load balancer might mitigate this if I understand the limitation correctly? If that's true, I guess it might be worth mentioning that in the docs too, though I don't expect many people are sending enough traffic to Marimo to really justify horizontal scaling. I just imagine it would be useful for availability/failure recovery
8 replies
Mmarimo
Created by Chandler on 3/2/2024 in #archived-help-and-support
Deployed Marimo Failed to Instantiate Errors
No description
8 replies
Mmarimo
Created by Chandler on 3/2/2024 in #archived-help-and-support
Deployed Marimo Failed to Instantiate Errors
No description
8 replies
Mmarimo
Created by Chandler on 3/2/2024 in #archived-help-and-support
Deployed Marimo Failed to Instantiate Errors
Here's the screenshot:
8 replies