Skip to content

Saved ExecuteTime metadata not displayed in jupytext notebooks #1413

@ctcjab

Description

@ctcjab

Even with configuration that correctly results in a jupytext notebook having the cell execution metadata saved inside it, the execution metadata is not shown when the jupytext notebook is opened in JupyterLab (even though it is shown as expected for the paired .ipynb):

Image
Expand for copy/pasted terminal session
❯ cat jupytext.toml 
# Ref: https://jupytext.readthedocs.io/en/latest/config.html

cell_metadata_filter = "ExecuteTime,execution,-hide_output"
notebook_metadata_filter = "-jupytext.text_representation.jupytext_version"

❯ cat foo.py
# ---
# jupyter:
#   jupytext:
#     cell_metadata_filter: ExecuteTime,execution,-hide_output
#     formats: ipynb,py:percent
#     notebook_metadata_filter: -jupytext.text_representation.jupytext_version
#     text_representation:
#       extension: .py
#       format_name: percent
#       format_version: '1.3'
#   kernelspec:
#     display_name: base
#     language: python
#     name: python3
# ---

# %% deletable=true editable=true execution={"iopub.status.busy": "2025-08-07T18:50:39.242134Z", "iopub.execute_input": "2025-08-07T18:50:39.242391Z", "iopub.status.idle": "2025-08-07T18:50:39.444469Z", "shell.execute_reply.started": "2025-08-07T18:50:39.242373Z", "shell.execute_reply": "2025-08-07T18:50:39.444109Z"} frozen=false slideshow={"slide_type": ""}
import time; time.sleep(.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions