This is a bug in nbconvert: https://github.com/jupyter/nbconvert/issues/1849. Workaround: downgrade nbconvert to 6.5.0 until the upstream is fixed.