-
Notifications
You must be signed in to change notification settings - Fork 395
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
active-py mode strips leading # from comments #1131
Comments
I see! Thank you @kerrickstaley for reporting this. I will have a look. |
mwouts
added a commit
that referenced
this issue
Nov 27, 2023
* Add a test to reproduce #1131 * Do not uncomment raw ipynb cells
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When I load a file that has a cell tagged with
active-py
and then save it, Jupytext strips the leading#
on comments in the cell, making the cell no longer run correctly in the .py file.To reproduce
foo.py
:jupyter notebook
in the directory where you savedfoo.py
and openfoo.py
.Expected behavior
The file foo.py is unchanged.
Actual behavior
The line
in foo.py changes to
which makes the file no longer runnable (not valid Python code).
System info
macOS 13.3.1
Python 3.11.5
jupytext 1.15.2
Also repros on:
Rocky Linux 8.8
Python 3.8.17
jupytext 1.5.2
The text was updated successfully, but these errors were encountered: