Skip to content

Commit

Permalink
Filter ExecuteTime metadata #106
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 18, 2018
1 parent 1abde87 commit ba757f8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jupytext/cell_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
_IGNORE_METADATA = [
# Frequent cell metadata that should not enter the text representation
# (these metadata are preserved in the paired Jupyter notebook).
'autoscroll', 'collapsed', 'scrolled', 'trusted',
'autoscroll', 'collapsed', 'scrolled', 'trusted', 'ExecuteTime',
# Pre-jupytext metadata
'skipline', 'noskipline',
# Jupytext metadata
Expand Down
2 changes: 1 addition & 1 deletion tests/notebooks/mirror/ipynb_to_Rmd/frozen_cell.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jupyter:
version: 3.7.0
---

```{python ExecuteTime={'end_time': '2018-10-17T10:31:56.160823Z', 'start_time': '2018-10-17T10:31:56.157308Z'}}
```{python}
# This is an unfrozen cell. Works as usual.
print("I'm a regular cell so I run and print!")
```
Expand Down
2 changes: 1 addition & 1 deletion tests/notebooks/mirror/ipynb_to_percent/frozen_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# version: 3.7.0
# ---

# %% {"ExecuteTime": {"end_time": "2018-10-17T10:31:56.160823Z", "start_time": "2018-10-17T10:31:56.157308Z"}}
# %%
# This is an unfrozen cell. Works as usual.
print("I'm a regular cell so I run and print!")

Expand Down
1 change: 0 additions & 1 deletion tests/notebooks/mirror/ipynb_to_script/frozen_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# version: 3.7.0
# ---

# + {"ExecuteTime": {"end_time": "2018-10-17T10:31:56.160823Z", "start_time": "2018-10-17T10:31:56.157308Z"}}
# This is an unfrozen cell. Works as usual.
print("I'm a regular cell so I run and print!")

Expand Down

0 comments on commit ba757f8

Please sign in to comment.