nbsphinx icon indicating copy to clipboard operation
nbsphinx copied to clipboard

Error on cells using progress bar (tqdm)

Open ThibaultFy opened this issue 1 year ago • 7 comments

Hello, I got the error

ERROR: Content block expected for the "raw" directive; none found.

on my cells using a progress bar (tqdm for instance). It appears when upgrading to Sphinx 7.2.6.

ThibaultFy avatar Feb 13 '24 11:02 ThibaultFy

I'm also seeing this in my logs: https://readthedocs.org/api/v2/build/23454115.txt

arjunsavel avatar Feb 15 '24 16:02 arjunsavel

This has been reported at https://github.com/jupyter/nbconvert/issues/2092.

This should probably be fixed in nbconvert, but I'm not sure if it should also be worked-around in nbsphinx.

Any suggestions?

Any volunteers?

In the meantime, pinning nbconvert < 7.14 should avoid the problem.

mgeier avatar Feb 15 '24 19:02 mgeier

Thanks for pointing the nbconvert issue.

I'll try with nbconvert 7.13. For now, I just stopped running my notebooks (nbsphinx_execute = "never") waiting for one of these issue to be fixed 🤞 .

ThibaultFy avatar Feb 23 '24 08:02 ThibaultFy

Pinning nbconvert to 7.13 fixed it. Should I close this issue ?

ThibaultFy avatar Feb 23 '24 09:02 ThibaultFy

I think this should stay open until there is a real fix. Pinning nbconvert isn't really a long-term solution.

mgeier avatar Feb 24 '24 10:02 mgeier

I suggested a fix to nbconvert: https://github.com/jupyter/nbconvert/pull/2142

mgeier avatar Apr 28 '24 10:04 mgeier

nbconvert v7.16.4 has just been released and it should fix this problem.

@ThibaultFy @arjunsavel Can you please check if that works for you?

mgeier avatar Apr 29 '24 20:04 mgeier

I assume this works now. If not, please let me know!

mgeier avatar Aug 13 '24 14:08 mgeier