Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on cells using progress bar (tqdm) #776

Closed
ThibaultFy opened this issue Feb 13, 2024 · 8 comments
Closed

Error on cells using progress bar (tqdm) #776

ThibaultFy opened this issue Feb 13, 2024 · 8 comments

Comments

@ThibaultFy
Copy link

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 ThibaultFy changed the title Error on cells using tqdm Error on cells using progress bar (tqdm) Feb 13, 2024
@arjunsavel
Copy link

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

@mgeier
Copy link
Member

mgeier commented Feb 15, 2024

This has been reported at jupyter/nbconvert#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.

@ThibaultFy
Copy link
Author

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
Copy link
Author

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

@mgeier
Copy link
Member

mgeier commented Feb 24, 2024

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

@mgeier
Copy link
Member

mgeier commented Apr 28, 2024

I suggested a fix to nbconvert: jupyter/nbconvert#2142

SMoraisAnsys added a commit to ansys/pyaedt-examples that referenced this issue Apr 29, 2024
This should fix the issue related to flushed values.

See:
- spatialaudio/nbsphinx#776
- jupyter/nbconvert#2092
@mgeier
Copy link
Member

mgeier commented Apr 29, 2024

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
Copy link
Member

mgeier commented Aug 13, 2024

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

@mgeier mgeier closed this as completed Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants