question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown directive type "execute"

See original GitHub issue

Newbie 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
choldgrafcommented, May 22, 2020

good catch! I just opened up https://github.com/executablebooks/jupyter-book/pull/617 to fix this docs bug

0reactions
choldgrafcommented, May 26, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found