Open xiyuanbao opened 5 years ago
You can try modifying the Jinja template nbextensions.tpl. Best is to rename it when playing around, so you know you use your modified template.
Documentation for nbconvert template can be found here
Thank you very much @juhasch ! But unluckily I still don't know how to modify it after reading the doc...
I was wrong before, the ending tags are not missing but at wrong position; Tags can be closed normally until x3d->scene, as is shown below: But inside scene, when the tags should be parallel: the output html treats them with different level:
I am trying to export notebook using printview with nbconvert option: --template=nbextensions --to=html but the output of x3d object generated by mayavi cannot show properly in converted html, I compared the source code of notebook page and printed html and realize those end tags are missing in the latter one, can anyone tell me what to modify and how to modify to get rid of this? Thank you very much!
Here is the segment with all end tags and it is working:
<directionallight direction="0 -6.12323e-17 -1" color="1 1 1" intensity="1" on="true" shadowmapsize="1024" znear="-1" zfar="-1" shadowcascades="1" shadowsplitfactor="1" shadowsplitoffset="0.1"></directionallight>
Here is the segment without end tags :
<directionallight direction="0 -6.12323e-17 -1" color="1 1 1" intensity="1" on="true" shadowmapsize="1024" znear="-1" zfar="-1" shadowcascades="1" shadowsplitfactor="1" shadowsplitoffset="0.1">