How do I correctly convert from .qmd
to .ipynb
?
#9463
Replies: 3 comments 6 replies
-
cc @blairj09 |
Beta Was this translation helpful? Give feedback.
-
@juliasilge, I had the same problem (code blocks turning into markdown when converting from qmd to ipynb), so I tried the inverse (ipynb to qmd) and found the answer in the resulting qmd. @mcanouil and @jthomasmock are correct; providing Jupyter info in the YAML header is the key (unintentional YAML pun). I got your example to work by adding ---
title: "Here is my great title"
format: html
jupyter: ir
--- I tested this solution with the Before trying this solution, I suggest that you check the name of your R kernel by running
@jthomasmock, I tested your example. In my hands, the entire YAML header survived roundtrip conversion, even if all of the Also, your example solves the issue, but only if the Interestingly, providing the wrong kernel |
Beta Was this translation helpful? Give feedback.
-
I'm still seeing the issue of the YAML header showing up as the first cell in the resulting This is with quarto 1.6.39 on linux. |
Beta Was this translation helpful? Give feedback.
-
Description
If I start with a Quarto file, say named
test.qmd
, like this:Then I can convert it via
quarto convert test.qmd
. However, the.ipynb
file that I get is pretty mangled:What is the correct way to convert from
.qmd
to.ipynb
? I could understand not having the right kernelspec since that's not really encoded in the Quarto file, but the cells are not at all correct.I'm using Quarto 1.5.21 on macOS.
Beta Was this translation helpful? Give feedback.
All reactions