AdrDar87
AdrDar872mo ago

Kernel keeps crashing / change cell to code shortcut

Hi, I'm new here. When inside the tutorial notebooks (didn't try my own notebook yet), Marimo kernel keeps crashing. "ConnectionResetError: [WinError 10054] an existing connection was forcibly closed by the remote host" a few times and then SystemExit. I'm running on windows 10, with python 3.9.13 in a poetry env. I cannot paste much as this is happening on my work computer. Thank you for your help!
12 Replies
Akshay
Akshay2mo ago
Does it crash immediately or after a while? What version of marimo?
AdrDar87
AdrDar87OP2mo ago
Immediately when I try to run all cells (autorun was on lazy) 0.9.9 I'm trying to reinstall currently Thanks for the quick reply btw!
Akshay
Akshay2mo ago
Yup, it’s bedtime in my timezone but if you share any more info i can look in the morning. You might also try restarting your computer, the error seems like a networking one
AdrDar87
AdrDar87OP2mo ago
I'll try to see if I can do something and come back to you! Enjoy your night! After a reinstall, it seems to work. Not sure what caused this. I did get a kernel crash at some point but fine on restart. Quick question: it seems the notebook can change code into markdown. Is there a way to achieve the opposite operation (like M/Y shortcut to change the cell type to Markdown/Code)? Thank you for your work on this nice project!
Myles Scolnick
Myles Scolnick2mo ago
You can toggle markdown with F4. You can change this hotkey or find others in the Keyboard Shortcuts menu
No description
AdrDar87
AdrDar87OP2mo ago
Please correct me if I'm wrong, but f4 on a markdown cell seems to change the view (as markdown or python) but not to transform it back to a python code cell a=1 in a markdown cell will transform to mo.md("""a = 1""") and not a code cell with a = 1 inside
Myles Scolnick
Myles Scolnick2mo ago
that is correct
AdrDar87
AdrDar87OP2mo ago
Is there a jupyter shortcut equivalent of Y (from markdown to code cell) by any chance ? 🙂
Myles Scolnick
Myles Scolnick2mo ago
there is not, since our markdown is actually just python under the hood what is the use-case? i dont think i've ever needed to do that
AdrDar87
AdrDar87OP2mo ago
I admit this is not vital but more nice to have. For some reason, I sometimes convert python code to Markdown (the shortcut works in this direction) and I happen to want to reverse the operation later on. I guess that's probably the reason why they have both operations in jupyter 🫣.
Myles Scolnick
Myles Scolnick2mo ago
Got it - probably too niche right now to give it a keyboard shortcut, but this is a good datapoint
AdrDar87
AdrDar87OP2mo ago
I opened a git issue for future reference