You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create an app that takes in a file, performs some statistical analysis on it, and produces output. I want to stop the execution if no file has been selected using file browser, and so I'm using mo.stop for it, which does stop notebook execution, but still renders the markdown cells.
As a result, the app looks weird with just a warning message of future markdown cells. The other option is to use a python cell that runs mo.md instead of having a markdown cell. This prevents rendering in app mode but also prevents rendering in edit mode, making it difficult to navigate different code sections to identify errors or check the code without selecting a file. I think the behavior for markdown rendering after mo.stop should be different in edit versus app mode.
Suggested solution
Change behavior of mo.stop in App Mode vs Edit Mode.
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
I can see the desire for this, but it makes, especially since there isn't an explicit dependency between pure markdown cells, but their is an implicit dependency as the reader (they are headings to the content below).
I don't think we have anything in the near-term planned that will help this. the best thing you can do is to put the dependencies in the markdown block (which does lose syntax highlighting for you, unfortunately).
# Cell 1selection_dropdown=mo.ui.dropdown(["a", "b"])
# Cell 2mo.stop(notselection_dropdown.value)
selection=selection_dropdown.valueselection# Cell 3selection# this forces a dependency and will also be stoppedmo.md("Next steps:")
# Cell 4selectionmo.md("more markdown")
Description
I am trying to create an app that takes in a file, performs some statistical analysis on it, and produces output. I want to stop the execution if no file has been selected using file browser, and so I'm using
mo.stop
for it, which does stop notebook execution, but still renders the markdown cells.As a result, the app looks weird with just a warning message of future markdown cells. The other option is to use a python cell that runs mo.md instead of having a markdown cell. This prevents rendering in app mode but also prevents rendering in edit mode, making it difficult to navigate different code sections to identify errors or check the code without selecting a file. I think the behavior for markdown rendering after
mo.stop
should be different in edit versus app mode.Suggested solution
Change behavior of
mo.stop
in App Mode vs Edit Mode.Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: