jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Nest code-cells inside of admonitions and block-level syntax in myst notebooks

Open dennissxz opened this issue 4 years ago • 9 comments

Can I nest a code-cell under a dropdown cell? i.e.

````{dropdown} title 
text content
```{code-cell}
code content
```
text content
````

There is a warning message WARNING: Found an unexpected `code-cell` directive. Either this file was not converted to a notebook, because Jupytext header content was missing, or the `code-cell` was not converted, because it is nested.

If this is not possible, is there any way that I can hide/toggle a block of text + executable code?

dennissxz avatar Jan 16 '21 02:01 dennissxz