documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Getting started with SQD notebook can't be opened by Jupyter Lab

Open HuangJunye opened this issue 8 months ago • 2 comments

URL to the relevant documentation

https://docs.quantum.ibm.com/guides/qiskit-addons-sqd-get-started

Select all that apply

  • [ ] typo
  • [ ] code bug
  • [ ] out-of-date content
  • [ ] broken link
  • [x] other

Describe the fix.

Image

I couldn't open the downloaded notebook in Jupyter Lab

The error message is <ValidationError: 'The notebook is invalid and is missing an expected key: metadata'>. Interestingly it can be opened VSCode.

HuangJunye avatar Apr 25 '25 13:04 HuangJunye

Hey @Gyan-max! Would you have any interest in working on this one?

Eric-Arellano avatar Apr 25 '25 14:04 Eric-Arellano

Hey @Gyan-max! Would you have any interest in working on this one?

@Eric-Arellano Thanks for tagging me and sorry for being late to reply. I'll definitely give it a try and will submit a PR as soon as possible to fix the SQD notebook not opening in Jupyter Lab.

I just have some quick question, should I focus on adding the missing metadata key to the notebook file or explore another fix (e.g., a documentation update)? Any specific Jupyter Lab version I should test against?

Gyan-max avatar Apr 27 '25 06:04 Gyan-max

This has been fixed. The copyright cell that the web app auto-adds now sets an ID for the cell. Thanks, Junye and Gyan!

Eric-Arellano avatar Jun 19 '25 19:06 Eric-Arellano