Skip to content

BUG: frontmatter is not rendered #274

@bsipocz

Description

@bsipocz

Description

No frontdata is shown in the notebook. I have both project-wide (which I suppose won't show up anyway when looking at the individual notebooks in jupyter lab), but also notebook level frontmatter.
Here is all the metadata I have atm:

jupytext:
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.13
    jupytext_version: 1.17.3
kernelspec:
  display_name: Python 3 (ipykernel)
  language: python
  name: python3
authors:
  - name: Brigitta Sipőcz
  - name: IRSA Data Science Team
date: Tue, 30 Sep 2025
title: Random title to test if it shows

This could be a me issue as based on the docs I see that this should work out of the box, yet I don't see any frontmatter rendering at the top of the notebook.

I see a bunch of maybe relevant exceptions, but I believe I pip installed everything I needed, so if those should have been installed as well, so this may or may not be relevant here:

[I 2025-10-07 17:11:41.356 LabApp] Build is up to date
2025-10-07 17:11:44,680 - ServerApp - ERROR - Uncaught exception GET /api/nbconvert?1759871504543 (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8847', method='GET', uri='/api/nbconvert?1759871504543', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/tornado/web.py", line 1790, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_server/auth/decorator.py", line 73, in inner
    return await out
           ^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_server/services/nbconvert/handlers.py", line 41, in get
    exporters = await run_sync(base.get_export_names)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/nbconvert/exporters/base.py", line 145, in get_export_names
    e = get_exporter(exporter_name)(config=config)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/nbconvert/exporters/base.py", line 106, in get_exporter
    exporter = items[0].load()
               ^^^^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_contrib_nbextensions/nbconvert_support/__init__.py", line 5, in <module>
    from .collapsible_headings import ExporterCollapsibleHeadings
  File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_contrib_nbextensions/nbconvert_support/collapsible_headings.py", line 6, in <module>
    from notebook.services.config import ConfigManager
ModuleNotFoundError: No module named 'notebook.services'
[W 2025-10-07 17:11:44.681 ServerApp] wrote error: 'Unhandled error'
    Traceback (most recent call last):
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/tornado/web.py", line 1790, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_server/auth/decorator.py", line 73, in inner
        return await out
               ^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_server/services/nbconvert/handlers.py", line 41, in get
        exporters = await run_sync(base.get_export_names)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
        return await get_async_backend().run_sync_in_worker_thread(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
        return await future
               ^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 851, in run
        result = context.run(func, *args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/nbconvert/exporters/base.py", line 145, in get_export_names
        e = get_exporter(exporter_name)(config=config)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/nbconvert/exporters/base.py", line 106, in get_exporter
        exporter = items[0].load()
                   ^^^^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
        module = import_module(match.group('module'))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/importlib/__init__.py", line 90, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 994, in exec_module
      File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_contrib_nbextensions/nbconvert_support/__init__.py", line 5, in <module>
        from .collapsible_headings import ExporterCollapsibleHeadings
      File "/Users/bsipocz/.pyenv/versions/3.12.1/lib/python3.12/site-packages/jupyter_contrib_nbextensions/nbconvert_support/collapsible_headings.py", line 6, in <module>
        from notebook.services.config import ConfigManager
    ModuleNotFoundError: No module named 'notebook.services'
[E 2025-10-07 17:11:44.682 ServerApp] {
      "Host": "localhost:8847",
      "Accept": "*/*",
      "Referer": "http://localhost:8847/lab/tree/tutorials/spherex/spherex_psf.md",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:143.0) Gecko/20100101 Firefox/143.0"
    }
[E 2025-10-07 17:11:44.682 ServerApp] 500 GET /api/nbconvert?1759871504543 ([email protected]) 97.86ms referer=http://localhost:8847/lab/tree/tutorials/spherex/spherex_psf.md
[I 2025-10-07 17:11:44.988 ServerApp] Kernel started: 52b00441-96b6-4735-b15e-a4cd474748b5
[I 2025-10-07 17:11:45.724 ServerApp] Connecting to kernel 52b00441-96b6-4735-b15e-a4cd474748b5.
[I 2025-10-07 17:11:45.728 ServerApp] Connecting to kernel 52b00441-96b6-4735-b15e-a4cd474748b5.
[I 2025-10-07 17:11:45.732 ServerApp] Connecting to kernel 52b00441-96b6-4735-b15e-a4cd474748b5.
[I 2025-10-07 17:13:45.122 ServerApp] Saving file at /tutorials/spherex/spherex_psf.md
[I 2025-10-07 17:13:45.123 ServerApp] Saving spherex_psf.md
⚠️  tutorials/spherex/spherex_psf.md:73 Legacy syntax used for link target, please prepend a '#' to your link url: "spherex-intro"
   The link target should be of the form `[](#target)`, including the `#` sign.
This may be deprecated in the future.
⚠️  tutorials/spherex/spherex_psf.md:73 Legacy syntax used for link target, please prepend a '#' to your link url: "spherex-cutouts"
   The link target should be of the form `[](#target)`, including the `#` sign.
This may be deprecated in the future.
📖 Built tutorials/spherex/spherex_psf.md in 152 ms.
💌 GET  /spherex-psf 200 - - 15.735 ms
💌 GET  /myst-theme.css 200 - - 3.644 ms
💌 GET  /favicon.ico - - - - ms

Proposed solution

I have no proposed solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions