Skip to content

Documentation around what happens with returns from cells and parameters to cells #7029

@ari62

Description

@ari62

Documentation is

  • Missing
  • Outdated
  • Confusing
  • Not sure?

Explain in Detail

Please explain somewhere in the docs what happens when a function annotated with @app.cell returns a variable and where parameters can come from. Is the variable added to global variables?
What are parameters used for, why not just access the global varibale in the app.cell function ? Is the last line in @app.cell the output? Is the return the output ? is there a difference ? Are parameters able to be any global variable? What happens if you return a variable with an underscore in front , is it still added to global, is it just outputted? Why return a variable anyway if its just to add it to globals (everything is already added to globals if it doesnt start with _)?

Your Suggestion for Changes

above

Will you submit a PR?

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions