Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown built by MyST does NOT support code output #1

Open
rgaiacs opened this issue Jul 11, 2023 · 0 comments
Open

Markdown built by MyST does NOT support code output #1

rgaiacs opened this issue Jul 11, 2023 · 0 comments

Comments

@rgaiacs
Copy link
Contributor

rgaiacs commented Jul 11, 2023

myst build --force --md index.ipynb reports

📬 Performing exports:
   index.ipynb -> _build/exports/index.md
Loading project from path with no config file: /home/raniere/MethodsHub/minimal-example-ipynb-myst-python
Consider running "myst init --project" in that directory
📖 Built index.ipynb in 22 ms.
📖 Built README.md in 14 ms.
📖 Built CONTRIBUTING.MD in 13 ms.
📚 Built 3 pages for export (including 2 dependencies) from /home/raniere/MethodsHub/minimal-example-ipynb-myst-python in 42 ms.
⛔️ _build/exports/index.md Unsupported node type: output
⛔️ _build/exports/index.md Unsupported node type: output
⛔️ _build/exports/index.md Unsupported node type: output
📑 Exported MD in 51 ms, copying to _build/exports/index.md

The content of _build/exports/index.md is

---
title: Minimal Example of Tutorial in MyST (Markedly Structured Text)
authors:
  - name: Raniere Silva
---
+++
This example demonstrates the **required** metadata by [`methodshub`](https://github.com/GESIS-Methods-Hub/methodshub). The metadata must be placed in the first cell of the Jupyter Notebook. The first cell must be a `Markdown` cell. The metadata must be enclosed between `---`.

+++
(execution-of-python-code)=
## Execution of Python code

+++
```python
1 + 1
```



+++
(creation-of-figure-with-python)=
## Creation of figure with Python

+++
```python
import matplotlib.pyplot as plt
```



+++
```python
plt.plot([1,2,3]);
```
@rgaiacs rgaiacs changed the title Markdown built by MyST doesn Markdown built by MyST does NOT support code output Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant