jupyter-book / jupyter-book

Create beautiful, publication-quality books and documents from computational content.
http://jupyterbook.org
BSD 3-Clause "New" or "Revised" License
3.81k stars 653 forks source link

Incorrect result generated from sample of Jupyter Book #1556

Open zouguangxian opened 2 years ago

zouguangxian commented 2 years ago

Describe the problem

expect code in code-cell will be executed and output of result will be included in the generated file, but empty is placed at that place instead.

jb create sample
cd sample
printf '```{code-cell}\nprint("Here is some code to execute")\n```\n'
jb build --all ./

expect "Here is some code to execute" will be included at the end of _build/html/markdown.html.

Link to your repository or website

No response

Steps to reproduce

jb create sample
cd sample
printf '```{code-cell}\nprint("Here is some code to execute")\n```\n'
jb build --all ./

generated content is in _build/html/markdown.html.

The version of Python you're using

3.8.10

Your operating system

Linux 2549a707a148 5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Versions of your packages

# jupyter-book --version
Jupyter Book      : 0.12.1
External ToC      : 0.2.3
MyST-Parser       : 0.15.2
MyST-NB           : 0.13.1
Sphinx Book Theme : 0.1.7
Jupyter-Cache     : 0.4.3
NbClient          : 0.5.9

Additional context

No response

welcome[bot] commented 2 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada: