mwouts / jupytext

Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
https://jupytext.readthedocs.io
MIT License
6.6k stars 386 forks source link

Convert Jupyter Notebooks with R code cells to ```r code cells #1219

Open ClemensKohl opened 6 months ago

ClemensKohl commented 6 months ago

Hi, I am running Jupyter Notebooks with an R Kernel and when converting these files to Markdow the code cells are converted to code blocks starting with R. However many e.g. neovim plugins such as quarto.nvim and otter.nvim expect code blocks to start withr for e.g. syntax highlighting. Is there a setting, e.g. a flag, that I can make to ensure that these cells are converted to code blocks starting with ```r? For reference, here is the metadata from an example notebook:

jupyter:
  jupytext:
    text_representation:
      extension: .md
      format_name: markdown
      format_version: '1.3'
      jupytext_version: 1.16.1
  kernelspec:
    display_name: R 4.2
    language: R
    name: ir42

Thanks a lot for your time and help!