code-cell inside a "special block" in a markdown cell of Jupyter Notebook
See original GitHub issueI tried to execute a code inside a “special block” in a markdown cell in Jupyter Notebook:
````{tip}
Here is a sentence.
```{code-cell} python3
z = 100
```
Here is another sentence.
````
It generates an error:
WARNING: Unknown directive type "code-cell".
Is it an expected result?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Markdown Cells — Jupyter Notebook 6.5.2 documentation
Markdown basics . You can make text italic or bold by surrounding a block of text with a single or double *...
Read more >Code and Markdown Cells in Jupyter Notebook - Earth Lab
Run Code and Markdown cells within Jupyter Notebook to execute Python code and render Markdown text. List useful shortcuts for common tasks ...
Read more >Special content blocks - Jupyter Book
Blocks of text with custom titles# · Markdown-friendly directives with ::: # · Insert code cell outputs into admonitions# · HTML admonitions# ·...
Read more >How to Embed Code or Code Block Inside Markdown Cell
how to embed code or code block inside markdown cell : - Here we have embeded code and codeblock inside markdown cell for...
Read more >How To Write Code In Markdown Jupyter Notebook
First, open up your jupyter notebook and create a new file. ... Jupyter Notebook Markdown Code Block is a code cell type that...
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
The following worked!
Place the following in a markdown cell:
Place the following in a code cell with a tag
remove-cell
:ahhh right! I missed that part of your explanation, good point 👍
maybe we can add an extra section here: https://jupyterbook.org/content/content-blocks.html#notes-warnings-and-other-admonitions like “how to insert code outputs into your admonition blocks” and show a short example, then cross-link to the
glue
docs?