Skip to content
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

execute with cache does not restore cache outputs for jupytext #617

Open
itcarroll opened this issue Aug 4, 2024 · 0 comments
Open

execute with cache does not restore cache outputs for jupytext #617

itcarroll opened this issue Aug 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@itcarroll
Copy link

Describe the bug

context
When I do jupyter-book build src on a book with jupytext content, then jcache notebook -p src/_build/.jupyter_cache list prints a result with the wrong Reader.

  ID  URI                                              Reader    Added             Status
----  -----------------------------------------------  --------  ----------------  --------
   1  example.py                                       nbformat  2024-08-04 02:43  ❗️ (unreadable)

expectation

I expected the Reader to be jupytext.

bug

I think this is a bug, because on subsequent builds, when the cached outputs are supposed to be copied into the notebook, they are not. The build just quietly leaves outputs empty.

Reproduce the bug

Included in _config.yml:

sphinx:
  config:
    nb_custom_formats:
      .py:
        - jupytext.reads
        - fmt: py

List your environment

Jupyter Book      : 1.0.2
External ToC      : 1.0.1
MyST-Parser       : 1.0.0
MyST-NB           : 1.1.1
Sphinx Book Theme : 1.1.3
Jupyter-Cache     : 1.0.0
NbClient          : 0.10.0
@itcarroll itcarroll added the bug Something isn't working label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant