Replies: 2 comments 2 replies
-
If you paste the underlying python definition in a notebook, it will auto make cells. Example, try pasting in this code block @app.cell
def _():
mo.md("Markdown cell")
return
@app.cell
def _():
a = 1
b = 2
a + b
return So the best implementation would have ctrl-c in command mode copy this raw code (which would also be good for sharing), and we'd get this feature of cross cell copy pasting for free. |
Beta Was this translation helpful? Give feedback.
-
@Sejmou @dmadisetti when you are in command mode (press Here are the docs: https://docs.marimo.io/guides/editor_features/overview/?h=copy#command-mode |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
first of all: I love working with marimo, huge thank you to everyone that contributed to this awesome project so far <3
However, there's one thing that has been a huge painpoint for me while working on stuff with marimo: I can't copy-paste cells between notebooks (or, even within the same notebook afaik?).
I would like to be able to just select several cells (like in command mode), hit ctrl/cmd + c, navigate to the place where I want to insert the cells in another notebook, hit ctrl/cmd + v there and have all cells copied over. This would be much more convenient than my current approach (starting with a rough template and adding/removing the cells for stuff I would need for my specific project).
Additionally, moving cells by putting them to the clipboard temporarily (via ctrl/cmd + x and ctrl/cmd + v) would also be really helpful when reorganizing a chaotic notebook.
Are those features already on the roadmap, or maybe even available in some way that I am not aware of? I searched through the issues with different keywords, but couldn't really find anything (sorry if I missed something).
If not, what parts of the codebase should I look into if I want to look into contributing those features (in case you agree you want to have them in the project)?
Thanks in advance for your response.
Greetings,
Samo
Beta Was this translation helpful? Give feedback.
All reactions