qiskit-community / qiskit-qec

Qiskit quantum error correction framework
https://qiskit-community.github.io/qiskit-qec/
Apache License 2.0
84 stars 35 forks source link

Default Jupyter notebooks thumbnails #402

Closed arnaucasau closed 1 year ago

arnaucasau commented 1 year ago

Summary

This PR adds a default thumbnail for the Jupyter notebooks. In the following screenshots we can see the change:

Without a default thumbnail:

Screenshot 2023-10-18 at 18 25 23

With a default thumbnail:

Screenshot 2023-10-18 at 18 26 19
grace-harper commented 1 year ago

Hey @arnaucasau Is it possible to have the default thumbnail show only when there are not pre-existing thumbnails for the tutorial?

arnaucasau commented 1 year ago

Hi @grace-harper, yes! With the changes in this PR, the default thumbnail will be used only if you don't set any other thumbnail. There are multiple ways to set the thumbnails, you can use an image displayed in the tutorials by adding the tag nbsphinx-thumbnail to the cell with the image, or you can modify nbsphinx_thumbnails in theconf.py file by adding an entry below the one I added with the name of the notebook and the image you want to set as thumbnail.

grace-harper commented 1 year ago

@arnaucasau On my end, it looks like Qiskit QEC Software Framework thumbnails gets overwritten by the default.

arnaucasau commented 1 year ago

Hmm, you're right. I added the tag in the images used as a thumbnail before. I think all of the notebooks have recovered their thumbnails now, and the other ones have the default. Thank you @grace-harper :)

grace-harper commented 1 year ago

Awesome! Thanks!