-
DescriptionI'm trying to set up a custom listing with a bunch of notebooks. The notebooks are stored as py:percent files, but because execution is expensive (and the notebooks with final state are interesting to me on their own) I've converted them to .ipynb files using quarto render scripts/notebook.py -t ipynb I've also set up a custom listing that should take all the .ipynb files as content (specified by a I was suspecting that I either messed up the listing orchestration, or the notebook metadata. However, the following works:
I've reduced the problem to three ~10 line files and I'm attaching the .ipynb for convenience (click here): ├── _quarto.yml
├── index.qmd
└── scripts
├── notebook.ipynb
└── notebook.py I already checked other discussions here about missing metadata in .ipynb files, but the solutions there didn't seem to apply to my situation. I'm happy for any pointers about what I might be doing wrong. Thank you! (Quarto 1.7.31 on MacOS 15.4.1) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Your Jupyter Notebooks are not valid for Quarto as stated by the error message: they do not have any metadata.
The listing feature works the same way for qmd/ipynb as long as they have the proper metadata such as title, author, date, etc. that the listing requires. |
Beta Was this translation helpful? Give feedback.
-
I don't know what you are doing exactly, but let's take a simple example. quarto create project blog issue12758 12758 --no-open --no-prompt
cd issue12758
quarto convert posts/welcome/index.qmd
rm posts/welcome/index.qmd
quarto convert posts/post-with-code/index.qmd
rm posts/post-with-code/index.qmd
quarto render
This leads to a website with a listing showing the Jupyter Notebooks. |
Beta Was this translation helpful? Give feedback.
quarto convert
only do Quarto to Jupyter Notebook and the other way around as documented (quarto convert --help
) and yes the issue is about extending the command to scripts: