Unknown directive type "execute"
See original GitHub issueNewbie here trying to use the beta 0.7. I did a “jb create” and then edited the markdown.md file to take away the outer fence around the demonstration execute directive block, so that I could see code execution in action. Then I build and get:
Running Sphinx v2.4.0
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
reading sources... [100%] markdown
/Users/driscoll/Documents/fnc-book/jb/markdown.md:8: WARNING: Unknown directive type "execute".
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] markdown
generating indices... genindexdone
writing additional pages... searchdone
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 1 warning.
I thought I might need to add kernel info, so I did jb myst init --kernel python3 markdown.md
, which added a kernelspec header. Running build again gave me
Running Sphinx v2.4.0
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
Executing: markdown[100%] markdown
/Users/driscoll/Documents/fnc-book/jb/markdown.md:23: WARNING: Unknown directive type "execute".
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] markdown
generating indices... genindexdone
writing additional pages... searchdone
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 1 warning.
It did change “reading sources” to “executing” the md file, but the execute block is gobbled with no output. What am I doing wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
ERROR: Unknown directive type "program-output"
I'm trying to create my docs with Sphinx, and now on two machines I have the exact same problem: the program-output directive does...
Read more >Unknown directive type "tabbed" · Issue #977 - GitHub
Hi all, I'm trying to follow the Tabbed Content example from the docs and I'm getting an Unknown directive type "tabbed" exception.
Read more >ERROR: Unknown directive type "autofunction" etc
ERROR: Unknown directive type "autofunction" etc. 1812 views ... When I run 'make clean' and then 'make html' I see: Running Sphinx v1.3.1....
Read more >Directives - Sphinx documentation
As previously discussed, a directive is a generic block of explicit markup. While Docutils provides a number of directives, Sphinx provides many more...
Read more >Sphinx Documents throw "unkonwn directive type" in Preview
What steps will reproduce the problem? Create a new Sphinx documentation (for example with sphinx-quickstart; Open the index.rst with the preview panel.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
good catch! I just opened up https://github.com/executablebooks/jupyter-book/pull/617 to fix this docs bug
cool, opened up in https://github.com/executablebooks/MyST-NB/issues/182