Closed
Description
Hi, I find .py file can be recognised and automatically generate corresponding .ipynb and .md files using jupyter notebook with Jupytext, but I cannot successfully make following Code 4 md cell correctly recognised as a md cell, and it just ruined the following cells into one cell where filled with {{{ and }}}:
Code 1 (OK): this will show normally as 1 code cell
# abcd
print('hello world')
Code 2 (OK): this will be recognised as 1 md cell and 1 code cell
# abcd
print('hello world')
Another syntex with the same effect
# {{{ {"cell_type": "markdown"}
# abcd
# }}}
print('hello world')
Or
# {{{ {"cell_type": "markdown"}
# abcd
# }}}
print('hello world')
Code 3 (OK): this will be recognised as 1 md cell and 1 code cell
# abcd'''
print('hello world')
Code 4 (Failed): this will be recognised as 1 cell, just like abcd''' }}} print('hello world')
{{{ {"cell_type": "markdown"}
abcd'''
}}}
print('hello world')
I don't know whether this a md issue or jupytext one, and hope this can be fixed.
Thanks!
Metadata
Assignees
Labels
No labels