chiggenman
chiggenman13mo ago

Is there currently any way to have a

Is there currently any way to have a form where I have switches A, B, and C, and switches B and C are displayed/enabled only when switch A is toggled to true?
21 Replies
chiggenman
chiggenmanOP13mo ago
I tried doing this with states but since the entire form was in one cell it didn't work out.
Akshay
Akshay13mo ago
Is it okay if b/c are only displayed once you hit submit? Like toggle A to true, hit submit, then b/c displayed?
chiggenman
chiggenmanOP13mo ago
Not really it's more a logical thing than anything else
Akshay
Akshay13mo ago
A, b, and c are all part of the same form?
chiggenman
chiggenmanOP13mo ago
yes For example, if the form was for planning a picnic and switch A was "Are any professors attending?", and switch B was "Is Stephen attending?"
Akshay
Akshay13mo ago
That makes sense
chiggenman
chiggenmanOP13mo ago
right now I have both A and B displayed on the form always, but A false and B true isn't reasonable I think it's my bad and I should just use a multi-select type thing, but I was wondering if there was a way to do execute a flowchart real time with switches in this way Where it becomes "select all professors attending"
Akshay
Akshay13mo ago
Yea a multiselect would work for that. I think what you were trying to do is not possible in a form today. You could do it if the switches weren’t in a form, but then you have to manage submission yourself with, say, a button
chiggenman
chiggenmanOP13mo ago
yeah I figured Thanks for the confirmation though I've been loving marimo, and I think I've fully migrated over now
Akshay
Akshay13mo ago
Woohoo!
chiggenman
chiggenmanOP13mo ago
from the start it was incredible, but now with all the integrations and all it's phenomenal
Akshay
Akshay13mo ago
Thanks Nikhil! Really glad to hear you’re enjoying it. Was there anything in particular that helped you fully migrate over?
chiggenman
chiggenmanOP13mo ago
I'm honestly not sure I think it's just easy and seamless to use. I had been trying do all my new projects with it for awhile now The plotting and data visualization was especially appealing and the editor with suggestions and hints and all is now extremely usable i do all my git in terminal, so i prefer the marimo editor over vscode by a huge margin anyway the reactivity and interactivity is a huge step up over jupyter anyway it's so good all in all that it's hard to point at one thing that's better because it feels like everything's better
Akshay
Akshay13mo ago
Sweet! Glad to hear that all resonates with you. I’m the same way re: terminal, not a vscode user. Though i know many people are
chiggenman
chiggenmanOP13mo ago
I haven't had a single "man, this was better with jupyter moment" yet probably wont with the pace at which you're making things better the marimo cloud stuff is also insane oh and thanks a ton for the 364a marimo demos stuff it's going to completely elevate the way in which we can present material
Akshay
Akshay13mo ago
Haha if you want to deploy something on cloud let us know! Right now it’s just for apps (marimo run), but we have plans to build it out for editing too Yea of course my pleasure! It’s going to be a ton of fun I think
chiggenman
chiggenmanOP13mo ago
I heard someone implemented cvxpy in the cloud using web assembly and the scipy backend? so now, with marimo cloud, you could have convex demos with cvxpy if you use the scipy backend?
Akshay
Akshay13mo ago
@Parth and @Philipp Schiele were I think. marimo cloud actually doesn’t run on wasm today, we have a backend running the marimo kernel. So we can do cvxpy demos even without wasm cvxpy But a wasm implementation would for sure be cool
chiggenman
chiggenmanOP13mo ago
wow
Parth
Parth13mo ago
Yeah we had CVXPY working in Pyodide I want to try compiling Clarabel for wasm at some point and see if we can get a whole pipeline working...
chiggenman
chiggenmanOP13mo ago
damn that would be incredible cvxpy on the play store next