Closed cmarmo closed 1 year ago
After reading the code I realized my issue.. I have to unindent the "kernelspec" keyword like in
---
jupyter:
jupytext:
text_representation:
extension: .md
format_name: myst
kernelspec:
display_name: C++17
language: C++17
name: xcpp17
---
I am closing the issue... sorry for the noise.
Dear maintainers, I am using jupytext 1.15.2 to convert MyST markdown files to .ipynb notebooks.
My notebooks make use of a C++17 kernel (provided by xeus-cling) in jupyter lab.
I am converting something like test.md running
The generated notebook looks like
``` { "cells": [ { "cell_type": "code", "execution_count": null, "id": "3de99dac", "metadata": {}, "outputs": [], "source": [ "#includeAnd when I open it with jupyter lab I am asked to manually select the kernel.
However, running
generates the following notebook
``` { "cells": [ { "cell_type": "code", "execution_count": null, "id": "e0d336a0", "metadata": {}, "outputs": [], "source": [ "#includeand this time the kernel is correctly taken into account when I open the notebook with jupyter lab.
It looks like in the first case the "kernelspec" related metadata are outside the "metadata" property and this prevents a correct json parsing... is that expected?
Thank you for your attention and for your time in developing jupytext!