Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tabs in a single notebook #1646

Closed
Eloitor opened this issue Jun 19, 2024 · 4 comments
Closed

Multiple tabs in a single notebook #1646

Eloitor opened this issue Jun 19, 2024 · 4 comments

Comments

@Eloitor
Copy link

Eloitor commented Jun 19, 2024

Description

I am hoping to be able to have multiple similar examples of some computations on a single document. Having one document for each example is very inefficient.

A single document for related examples makes it easier to share it.

Suggested solution

Each "Tab" could hold a separate example in an independent way.

Maybe some cells could be common to all tabs.

Silly example:

Common cell for all tabs: p=2 + More setup required.

Tab 1: a=1 + some other computations
Tab 2: a=5 + Other computations needed in this case
Tab 3: a=7 + Other computations needed in this case

Alternative

No response

Additional context

No response

@mscolnick
Copy link
Contributor

Have you tried mo.ui.tabs? https://docs.marimo.io/api/inputs/tabs.html

@Eloitor
Copy link
Author

Eloitor commented Jun 19, 2024

My request is having some sort of "global" tabs. And in each tab there would be multiple cells, like a normal notebook.

The point is that the same variable could be defined in each tab with different values without getting an error.

@mscolnick
Copy link
Contributor

that seems like it would get confusing to know which variable belongs to which.

we do plan to add notebook composition (you can import and embed one notebook in another). you will likely be able to achieve this much more easily with that feature. each notebook would have their own encapsulation of variables

@Eloitor
Copy link
Author

Eloitor commented Jun 19, 2024

ok that sounds similar than this request.

@Eloitor Eloitor closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants