You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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!
The text was updated successfully, but these errors were encountered:
pytkr
changed the title
Jupytext failed to recognise py file where md text ends up with ''' and of slide mode
Jupytext failed to recognise py file where md text ends up with '''
Jul 26, 2019
Hello @pytkr , thanks for the detailed report! Sure we'll have to fix that.
I think that what happens is that the detection of strings (in stringparser.py) is not aware of the single line comment (# for Python). I am currently not in a position to propose a fix for this, but I will certainly have a look at this in early September.
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
Code 2 (OK): this will be recognised as 1 md cell and 1 code cell
Another syntex with the same effect
Or
Code 3 (OK): this will be recognised as 1 md cell and 1 code cell
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!
The text was updated successfully, but these errors were encountered: