Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect .ipynb > .py > .ipynb roundtrip #41

Closed
lebigot opened this issue Aug 28, 2018 · 1 comment
Closed

Incorrect .ipynb > .py > .ipynb roundtrip #41

lebigot opened this issue Aug 28, 2018 · 1 comment

Comments

@lebigot
Copy link

lebigot commented Aug 28, 2018

I have a notebook cell which is only made of comments:

# …
# …
# …

When converting into .py and then back to .ipynb, the cell is transformed into pure Markdown, which is problematic (because the comments represent code that may have to be uncommented and run, sometimes).

In case this matters: the cell above contains Markdown, and the one below contains code.

@mwouts
Copy link
Owner

mwouts commented Aug 28, 2018

Thanks @lebigot for reporting. This was identified and resolved in current developement branch v0.6.0, with test https://github.com/mwouts/nbrmd/blob/v0.6.0/tests/test_read_simple_python.py#L170-L172

As I still have some work pending there (I'd like to refactor the parser), there might be a few days before the new version is released. Feel free to use the development version until that.

@mwouts mwouts mentioned this issue Aug 31, 2018
@mwouts mwouts closed this as completed Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants