I usually paste images directly from Clipboard to Notebook and Jupyter renders them all fine.
However, when I preview the nbdev page with nbdev_preview, the page replaces all images with the last image.
I dig into the notebook file and found out that all images have the same name - image.png (but in different Cells). When I manually replaced the image file name, nbdev_preview renders OK.
Do I need to manually replaces all file names or it is a bug ?
I have updated my notebook by manually renaming all images. The pages look fine now but would love to know if we have solution for this problem in the future. Thanks
I created a minimal nbdev project and has these associated pages and was not able to reproduce the issue from cell attachments (copy and pasting from clipboard into markdown cell)
Thanks for your help @hamelsmu . I mean the attachments image name. In your ntest18 project, if you open the notebook as an text editor, you can see that you have:
Oh, pasting image in jupyter-lab create an unique filename ID for example “a8ab7d2c-e588-41d3-92a9-c1bb6b77c268.png” but not in vanilla jupyter-notebook (which is always image.png)