Get help from the marimo community

Home
Members
Riya Sinha
R
Riya Sinha
Offline, last seen last week
Joined November 25, 2024
Have there been any discussions on adding non-python runtimes? i.e. R is the one I had in mind. I know pyodide is specifically python which would make this quite hard, but just wanted to ask whether there had been any discussion around this already
2 comments
l
I'd like to add something for marimo-agents to be able to collect information about all the cells + cell outputs above it

I don't think outputting to global variables works because this makes it hard to capture order of messages, or if i do an array then that doesn't update on cell deletion/reordering. Ideally, at runtime, I'd be able to call a method internally on the Cell on-run to get all the things prior to it.

(Use case: an AI agent could dynamically run using the context of all the things above it in the notebook)

I understand this may not fit marimo's vision and am happy to implement it for my own project or within marimo-core, but would just like to get an idea of any ways I could add this that would fit the existing development style @Myles Scolnick
Is script metadata intended to work in edit mode also? I don't think it is for me / i find that the ScriptConfigManager always has filename set to the dir where I start marimo from
3 comments
M
R
Is there a way I can reference a cell's output? E.g.

Plain Text
@app.Cell
def _():
   print('hi')

@app.Cell
def _():
   return mo.cells[0].output
2 comments
M
R
If I would want to make a marimo edit server available to multiple users, but only make it so that notebooks within a certain directory are viewable to someone based on their user id, is that possible? or are there any workarounds that I can do?
2 comments
M
R
is there a way to make a code block rendered in markdown like have a box around it?
4 comments
M
A
Say I have a python call that returns a dataframe. without assigning it to a variable within the notebook itself, is there a way I can register it as a data source? like from a module i'm importing?

Example:
Plain Text
def run_agent(input):
   for event in agent.run(input):
      # if is tabular
      df = pd.DataFrame(event.content)
      **mo.state.register_datasource(df, event.name + event.tool_args + "_df") # <------ saves df to var "nearest_gene_tool_chr15_88569444_df"**
      mo.output.append(df)
      ...
    ...
9 comments
R
A
M