From 6692a7a0f9a66b87595ac288030020314c48ad24 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Sun, 8 Dec 2024 22:09:17 +0000 Subject: [PATCH] Ensure that we get the text as text (not json) Fixes https://github.com/mwouts/jupytext/issues/1124 and https://github.com/jupyterlab/jupyter-collaboration/issues/214 --- src/jupytext/contentsmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jupytext/contentsmanager.py b/src/jupytext/contentsmanager.py index 80ee810b..812e7dac 100644 --- a/src/jupytext/contentsmanager.py +++ b/src/jupytext/contentsmanager.py @@ -299,7 +299,7 @@ def read_one_file(alt_path, alt_fmt): self.log.info(f"Reading SOURCE from {alt_path}") text = self.super.get( - alt_path, content=True, type="file", format=format + alt_path, content=True, type="file", format="text" )["content"] return reads(text, fmt=alt_fmt, config=config)