Open davidorme opened 1 month ago
Hi @davidorme , thank you for reporting this! We would need to make sure that this language information is preserved when the notebook is converted to a Jupyter notebook (the py:percent
format will then, in turn, preserve the cell metadata).
Let me check with @chrisjsewell who knows that part better than I do, what happens to that language specification when the conversion occurs.
Will put it on the todo list to have a look 😅 but feel free to ping me again if I don't reply
We're using
jupytext --pipe black
to automatically format Python code in MyST markdown notebooks (as part of pre-commit, but I don't think that's relevant here). The problem we're having is that (IIUC) the round trip through the percent format to pass it toblack
strips out the language specification on thecode-cell
directives. So given: