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
In paired py,ipynb configuration, a marked raw cell with an "active": "py" metadata or with an active-py tag does not exclude the cell from notebook.
steps to reproduce:
save test.py
open test.py as notebook
cells with active/tags set to py as shown in jupyter despite its marking
active="ipynb" works as intended (saving the notebook causes commenting)
file to reproduce:
test.py:
# %% active="py"
print('should only be displayed in py file')
# %% tags=["active-py"]
print('should only be displayed in py file')
# %% active="ipynb"
# print('only in jupyter')
Indeed, the active/inactive cells were not working properly in the percent format in Jupytext 1.4.1. This should be fixed now on master, and will be included in 1.4.2. Thank you for spoting and reporting this!
Jupytext 1.4.2 is now available on pypi: pip install jupytext==1.4.2, and is expected to fix this issue. Please let me know if you find the opposite! Thanks.
In paired py,ipynb configuration, a marked raw cell with an "active": "py" metadata or with an active-py tag does not exclude the cell from notebook.
steps to reproduce:
file to reproduce:
test.py:
ipynb file:
The text was updated successfully, but these errors were encountered: