marimo-team/marimo

Errors when reopening Notebook in the editor after editing it in VSCode

Opened this issue · 3 comments

Describe the bug

The following is happening:
Image

Environment

{
  "marimo": "0.9.14",
  "OS": "Linux",
  "OS Version": "6.9.3-76060903-generic",
  "Processor": "x86_64",
  "Python Version": "3.10.12",
  "Binaries": {
    "Browser": "--",
    "Node": "--"
  },
  "Dependencies": {
    "click": "8.1.7",
    "docutils": "0.21.2",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.1",
    "markdown": "3.7",
    "narwhals": "1.10.0",
    "packaging": "24.1",
    "psutil": "6.1.0",
    "pygments": "2.18.0",
    "pymdown-extensions": "10.11.2",
    "pyyaml": "6.0.2",
    "ruff": "0.7.0",
    "starlette": "0.41.1",
    "tomlkit": "0.13.2",
    "typing-extensions": "4.12.2",
    "uvicorn": "0.32.0",
    "websockets": "12.0"
  },
  "Optional Dependencies": {
    "pandas": "2.2.3"
  }
}

Code to reproduce

No response

I can't fully tell what happened. It looks like the markdown formatting might have changed e.g. when from md(""" to md(r""" for vice-versa. can you help confirm that?

Of course. Apparently, the problem is not that. I have also confirmed that copying the entire content to a fresh new cell produces the output correctly.

Image

Can you pin-point if its certain characters that are being dropped/modified? It could be some encoding during read/write