danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
385 stars 47 forks source link

Download assets when downloading notebook? #172

Closed PedroUria closed 1 year ago

PedroUria commented 1 year ago

When clicking the "Download" button, it only downloads the notebook, but not any assets associated with it.

For example, if the notebook has a markdown cell that loads an image, such us

 ![](image.jpg)

then, when the notebook is downloaded, image.jpg is not, and when the notebook is opened, it fails to render the image file.

Is there a way to download assets associated with notebooks?

danielfrg commented 1 year ago

No, there is no way to do this. The Download button is just a link to the notebook raw file.

You could try to embed the image in the notebook in base64 that way it would be part of the actual notebook.

PedroUria commented 1 year ago

Alright, thanks for the quick response! I'll look into the base64.