Skip to content

Add --layout flag to marimo run -- or perhaps just a documentation issue? #6623

@stephenlf

Description

@stephenlf

Description

I would like to serve my notebook in slides mode. The notebook has dependencies that make it impossible to export as a WASM file.

Suggested solution

Add support for a --layout flag in the CLI command marimo run

Are you willing to submit a PR?

  • Yes

Edit: Solution

Updating this PR with information from the comments below.

This is already possible. I needed to include the "layouts/" folder in my deployment. I could have verified that it was set up correctly by noting:

  1. "my_notebook.md" has this line (note the layout_file argument):
# Autogenerated by Marimo; specified layout file
app = marimo.App(layout_file="layouts/my_notebook.slides.json") 
  1. layouts/my_notebook.slides.json exists.
$ cat layouts/my_notebook.slides.json
{
  "type": "slides",
  "data": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions